public function MediaSettingsTest::testStatusPage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media/tests/src/Functional/MediaSettingsTest.php \Drupal\Tests\media\Functional\MediaSettingsTest::testStatusPage()
Tests that media warning appears if oEmbed media types exists.
File
- core/
modules/ media/ tests/ src/ Functional/ MediaSettingsTest.php, line 28
Class
- MediaSettingsTest
- Testing the media settings.
Namespace
Drupal\Tests\media\FunctionalCode
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');
}