test element file routing
This commit is contained in:
parent
14d2ce2284
commit
0d5783ba9c
14 changed files with 951 additions and 388 deletions
|
|
@ -33,19 +33,19 @@ class UpdateIconImageTest extends TestCase
|
|||
|
||||
/**
|
||||
* @return array{
|
||||
* iconImageContents: string,
|
||||
* iconImageOriginalName: string,
|
||||
* iconImageMimeType: string,
|
||||
* iconImageSizeBytes: int
|
||||
* fileContents: string,
|
||||
* fileOriginalName: string,
|
||||
* fileMimeType: string,
|
||||
* fileSizeBytes: int
|
||||
* }
|
||||
*/
|
||||
private function imageArgs(): array
|
||||
{
|
||||
return [
|
||||
'iconImageContents' => 'binary-image-bytes',
|
||||
'iconImageOriginalName' => 'icon.png',
|
||||
'iconImageMimeType' => 'image/png',
|
||||
'iconImageSizeBytes' => 1024,
|
||||
'fileContents' => 'binary-image-bytes',
|
||||
'fileOriginalName' => 'icon.png',
|
||||
'fileMimeType' => 'image/png',
|
||||
'fileSizeBytes' => 1024,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -97,10 +97,10 @@ class UpdateIconImageTest extends TestCase
|
|||
$this->useCase->execute(
|
||||
new UpdateIconImageRequest(
|
||||
id: 1,
|
||||
iconImageContents: null,
|
||||
iconImageOriginalName: null,
|
||||
iconImageMimeType: null,
|
||||
iconImageSizeBytes: null,
|
||||
fileContents: null,
|
||||
fileOriginalName: null,
|
||||
fileMimeType: null,
|
||||
fileSizeBytes: null,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -115,10 +115,10 @@ class UpdateIconImageTest extends TestCase
|
|||
$this->useCase->execute(
|
||||
new UpdateIconImageRequest(
|
||||
id: 1,
|
||||
iconImageContents: 'not-an-image',
|
||||
iconImageOriginalName: 'icon.pdf',
|
||||
iconImageMimeType: 'application/pdf',
|
||||
iconImageSizeBytes: 1024,
|
||||
fileContents: 'not-an-image',
|
||||
fileOriginalName: 'icon.pdf',
|
||||
fileMimeType: 'application/pdf',
|
||||
fileSizeBytes: 1024,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -131,10 +131,10 @@ class UpdateIconImageTest extends TestCase
|
|||
$this->useCase->execute(
|
||||
new UpdateIconImageRequest(
|
||||
id: 1,
|
||||
iconImageContents: 'big',
|
||||
iconImageOriginalName: 'icon.png',
|
||||
iconImageMimeType: 'image/png',
|
||||
iconImageSizeBytes: 6 * 1024 * 1024,
|
||||
fileContents: 'big',
|
||||
fileOriginalName: 'icon.png',
|
||||
fileMimeType: 'image/png',
|
||||
fileSizeBytes: 6 * 1024 * 1024,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -167,7 +167,8 @@ class UpdateIconImageTest extends TestCase
|
|||
description: 'Original description',
|
||||
iconImageUrl: null,
|
||||
richText: '',
|
||||
pdfPath: null,
|
||||
shortPdfPath: null,
|
||||
longPdfPath: null,
|
||||
youtubeUrl: null,
|
||||
parentElement: null,
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue