MediaSettingsTest.php in Drupal 9
File
core/modules/media/tests/src/Functional/MediaSettingsTest.php
View source
<?php
namespace Drupal\Tests\media\Functional;
class MediaSettingsTest extends MediaFunctionalTestBase {
protected $defaultTheme = 'stark';
protected function setUp() : void {
parent::setUp();
$this
->drupalLogin($this
->createUser([
'administer site configuration',
]));
}
public function testStatusPage() {
$assert_session = $this
->assertSession();
$this
->drupalGet('admin/reports/status');
$assert_session
->pageTextNotContains('It is potentially insecure to display oEmbed content in a frame');
$this
->createMediaType('oembed:video');
$this
->drupalGet('admin/reports/status');
$assert_session
->pageTextContains('It is potentially insecure to display oEmbed content in a frame');
}
}