static::
assertEquals(Response::HTTP_OK,
$response->
getStatusCode());
static::
assertIsString($header =
$response->headers->
get('Content-Disposition'
));
static::
assertStringContainsString($expectOutputFilename,
$header);
} /**
* @return iterable<string, array{fileEntity: ImportExportFileEntity, accessToken: string}>
*/
public static function dataProviderInvalidAccessToken(): iterable
{ yield 'empty access token' =>
[ 'fileEntity'
=> (new ImportExportFileEntity())->
assign([ 'id' => Uuid::
randomHex(),
'accessToken' => '',
]),
'accessToken' => 'validAccessToken',
];
yield 'mismatched access token' =>
[ 'fileEntity'
=> (new ImportExportFileEntity())->
assign([ 'id' => Uuid::
randomHex(),
'accessToken' => 'validAccessToken',
]),