You are here

protected function MediaSourceTestBase::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php \Drupal\Tests\media\FunctionalJavascript\MediaSourceTestBase::setUp()
  2. 9 core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php \Drupal\Tests\media\FunctionalJavascript\MediaSourceTestBase::setUp()

File

core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php, line 17

Class

MediaSourceTestBase
Base class for media source tests.

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

protected function setUp() : void {
  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();
}