Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / media / tests / src / Functional / MediaSettingsTest.php
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 }