test pdf path removal
This commit is contained in:
parent
9bbabc7fa6
commit
28f4114def
3 changed files with 29 additions and 58 deletions
|
|
@ -129,10 +129,7 @@ class ElementControllerTest extends TestCase
|
|||
'/assets/pdfs/baderech-long.pdf',
|
||||
$body['element']['longPdfPath'],
|
||||
);
|
||||
$this->assertSame(
|
||||
'/assets/pdfs/baderech.pdf',
|
||||
$body['element']['pdfPath'],
|
||||
);
|
||||
$this->assertArrayNotHasKey('pdfPath', $body['element']);
|
||||
$this->assertSame(
|
||||
'https://www.youtube.com/watch?v=yHx-r4p6hHU&t=1s',
|
||||
$body['element']['youtubeUrl'],
|
||||
|
|
@ -233,10 +230,7 @@ class ElementControllerTest extends TestCase
|
|||
'https://test.local/storage/element-pdfs/short/fake-baderech.pdf',
|
||||
$body['element']['shortPdfPath'],
|
||||
);
|
||||
$this->assertSame(
|
||||
$body['element']['shortPdfPath'],
|
||||
$body['element']['pdfPath'],
|
||||
);
|
||||
$this->assertArrayNotHasKey('pdfPath', $body['element']);
|
||||
$this->assertSame(
|
||||
'element-pdfs/short',
|
||||
$this->fileUploader->uploads[0]['folder'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue