Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
8 | 8 |
9 /** | 9 /** |
10 * Base class for media source tests. | 10 * Base class for media source tests. |
11 */ | 11 */ |
12 abstract class MediaSourceTestBase extends MediaJavascriptTestBase { | 12 abstract class MediaSourceTestBase extends MediaJavascriptTestBase { |
13 | |
14 /** | |
15 * {@inheritdoc} | |
16 */ | |
17 protected function setUp() { | |
18 parent::setUp(); | |
19 | |
20 // Let's set the canonical flag in the base class of the source tests, | |
21 // because every source test has to check the output on the view page. | |
22 \Drupal::configFactory() | |
23 ->getEditable('media.settings') | |
24 ->set('standalone_url', TRUE) | |
25 ->save(TRUE); | |
26 | |
27 $this->container->get('router.builder')->rebuild(); | |
28 } | |
13 | 29 |
14 /** | 30 /** |
15 * Creates storage and field instance, attached to a given media type. | 31 * Creates storage and field instance, attached to a given media type. |
16 * | 32 * |
17 * @param string $field_name | 33 * @param string $field_name |