Mercurial > hg > cmmr2012-drupal-site
diff core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php Thu May 09 15:34:47 2019 +0100 @@ -12,6 +12,22 @@ abstract class MediaSourceTestBase extends MediaJavascriptTestBase { /** + * {@inheritdoc} + */ + 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(); + } + + /** * Creates storage and field instance, attached to a given media type. * * @param string $field_name