You are here

protected function MediaSourceOEmbedVideoTest::initConfig in Drupal 9

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

Initialize various configurations post-installation.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container.

Overrides FunctionalTestSetupTrait::initConfig

File

core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php, line 43

Class

MediaSourceOEmbedVideoTest
Tests the oembed:video media source.

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

protected function initConfig(ContainerInterface $container) {
  parent::initConfig($container);

  // Enable twig debugging to make testing template usage easy.
  $parameters = $container
    ->getParameter('twig.config');
  $parameters['debug'] = TRUE;
  $this
    ->setContainerParameter('twig.config', $parameters);
}