protected function MediaSourceTestBase::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php \Drupal\Tests\media\FunctionalJavascript\MediaSourceTestBase::setUp()
Overrides MediaFunctionalTestTrait::setUp
1 call to MediaSourceTestBase::setUp()
- MediaSourceOEmbedVideoTest::setUp in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceOEmbedVideoTest.php
1 method overrides MediaSourceTestBase::setUp()
- MediaSourceOEmbedVideoTest::setUp in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceOEmbedVideoTest.php
File
- core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceTestBase.php, line 17
Class
- MediaSourceTestBase
- Base class for media source tests.
Namespace
Drupal\Tests\media\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Let's set the canonical flag in the base class of the source tests,
// because every source test has to check the output on the view page.
\Drupal::configFactory()
->getEditable('media.settings')
->set('standalone_url', TRUE)
->save(TRUE);
$this->container
->get('router.builder')
->rebuild();
}