route element file uploads
Add short and long PDF paths to elements, keep pdfPath as a short PDF compatibility alias, and route generic file uploads by fileType.
This commit is contained in:
parent
0d5783ba9c
commit
9bbabc7fa6
28 changed files with 686 additions and 214 deletions
|
|
@ -23,7 +23,8 @@ class FakeElementRepository implements ElementRepository
|
|||
description: $dto->description,
|
||||
iconImageUrl: $dto->iconImageUrl,
|
||||
richText: $dto->richText,
|
||||
pdfPath: $dto->pdfPath,
|
||||
shortPdfPath: $dto->shortPdfPath,
|
||||
longPdfPath: $dto->longPdfPath,
|
||||
youtubeUrl: $dto->youtubeUrl,
|
||||
set: $dto->set,
|
||||
parentElement: $dto->parentElement,
|
||||
|
|
@ -111,7 +112,8 @@ class FakeElementRepository implements ElementRepository
|
|||
description: $element->getDescription(),
|
||||
iconImageUrl: $element->getIconImageUrl(),
|
||||
richText: $element->getRichText(),
|
||||
pdfPath: $element->getPdfPath(),
|
||||
shortPdfPath: $element->getShortPdfPath(),
|
||||
longPdfPath: $element->getLongPdfPath(),
|
||||
youtubeUrl: $element->getYoutubeUrl(),
|
||||
set: $element->getSet(),
|
||||
parentElement: $parentElement,
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ class ElementsEndpointTest extends TestCase
|
|||
]);
|
||||
}
|
||||
|
||||
public function testAuthenticatedIconImageUploadReturnsElementPayload(): void
|
||||
public function testAuthenticatedIconImageUploadReturnsPayload(): void
|
||||
{
|
||||
Storage::fake('public');
|
||||
$setRepository = app(SetRepository::class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue