public function MediaSettingsTest::testStatusPage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media/tests/src/Functional/MediaSettingsTest.php \Drupal\Tests\media\Functional\MediaSettingsTest::testStatusPage()
Test 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');
}