test element youtube url
This commit is contained in:
parent
8a06f5a57c
commit
f9c4d72e60
6 changed files with 75 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ class ElementTest extends TestCase
|
|||
description: 'Root description',
|
||||
richText: '<p>Root rich text</p>',
|
||||
pdfPath: null,
|
||||
youtubeUrl: null,
|
||||
set: $set,
|
||||
parentElement: null,
|
||||
);
|
||||
|
|
@ -31,6 +32,7 @@ class ElementTest extends TestCase
|
|||
description: 'Child description',
|
||||
richText: '<p>Child rich text</p>',
|
||||
pdfPath: '/assets/pdfs/child.pdf',
|
||||
youtubeUrl: 'https://www.youtube.com/watch?v=yHx-r4p6hHU&t=1s',
|
||||
set: $set,
|
||||
parentElement: $rootElement,
|
||||
);
|
||||
|
|
@ -49,9 +51,14 @@ class ElementTest extends TestCase
|
|||
'/assets/pdfs/child.pdf',
|
||||
$childElement->getPdfPath(),
|
||||
);
|
||||
$this->assertSame(
|
||||
'https://www.youtube.com/watch?v=yHx-r4p6hHU&t=1s',
|
||||
$childElement->getYoutubeUrl(),
|
||||
);
|
||||
$this->assertSame($set, $childElement->getSet());
|
||||
$this->assertSame($rootElement, $childElement->getParentElement());
|
||||
$this->assertNull($rootElement->getPdfPath());
|
||||
$this->assertNull($rootElement->getYoutubeUrl());
|
||||
$this->assertNull($rootElement->getParentElement());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue