Mercurial > hg > isophonics-drupal-site
comparison core/modules/media/tests/src/Functional/MediaSettingsTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\media\Functional; | |
4 | |
5 /** | |
6 * Testing the media settings. | |
7 * | |
8 * @group media | |
9 */ | |
10 class MediaSettingsTest extends MediaFunctionalTestBase { | |
11 | |
12 /** | |
13 * {@inheritdoc} | |
14 */ | |
15 protected function setUp() { | |
16 parent::setUp(); | |
17 $this->drupalLogin($this->createUser(['administer site configuration'])); | |
18 } | |
19 | |
20 /** | |
21 * Test that media warning appears if oEmbed media types exists. | |
22 */ | |
23 public function testStatusPage() { | |
24 $assert_session = $this->assertSession(); | |
25 | |
26 $this->drupalGet('admin/reports/status'); | |
27 $assert_session->pageTextNotContains('It is potentially insecure to display oEmbed content in a frame'); | |
28 | |
29 $this->createMediaType('oembed:video'); | |
30 | |
31 $this->drupalGet('admin/reports/status'); | |
32 $assert_session->pageTextContains('It is potentially insecure to display oEmbed content in a frame'); | |
33 } | |
34 | |
35 } |