You are here

protected function OEmbedFormatterTest::setUp in Drupal 10

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

Overrides MediaFunctionalTestTrait::setUp

File

core/modules/media/tests/src/Functional/FieldFormatter/OEmbedFormatterTest.php, line 38

Class

OEmbedFormatterTest
@covers \Drupal\media\Plugin\Field\FieldFormatter\OEmbedFormatter

Namespace

Drupal\Tests\media\Functional\FieldFormatter

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->lockHttpClientToFixtures();
  \Drupal::configFactory()
    ->getEditable('media.settings')
    ->set('standalone_url', TRUE)
    ->save(TRUE);
  $this->container
    ->get('router.builder')
    ->rebuild();
}