Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/media/tests/src/Functional/MediaContextualLinksTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
20 | 20 |
21 /** | 21 /** |
22 * Tests contextual links. | 22 * Tests contextual links. |
23 */ | 23 */ |
24 public function testMediaContextualLinks() { | 24 public function testMediaContextualLinks() { |
25 \Drupal::configFactory() | |
26 ->getEditable('media.settings') | |
27 ->set('standalone_url', TRUE) | |
28 ->save(TRUE); | |
29 | |
30 $this->container->get('router.builder')->rebuild(); | |
31 | |
25 // Create a media type. | 32 // Create a media type. |
26 $mediaType = $this->createMediaType('test'); | 33 $mediaType = $this->createMediaType('test'); |
27 | 34 |
28 // Create a media item. | 35 // Create a media item. |
29 $media = Media::create([ | 36 $media = Media::create([ |