public function TrustedHostsTest::testStatusPageWithoutConfiguration in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/System/TrustedHostsTest.php \Drupal\Tests\system\Functional\System\TrustedHostsTest::testStatusPageWithoutConfiguration()
- 10 core/modules/system/tests/src/Functional/System/TrustedHostsTest.php \Drupal\Tests\system\Functional\System\TrustedHostsTest::testStatusPageWithoutConfiguration()
Tests that the status page shows an error when the trusted host setting is missing from settings.php
File
- core/
modules/ system/ tests/ src/ Functional/ System/ TrustedHostsTest.php, line 35
Class
- TrustedHostsTest
- Tests output on the status overview page.
Namespace
Drupal\Tests\system\Functional\SystemCode
public function testStatusPageWithoutConfiguration() {
$this
->drupalGet('admin/reports/status');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertRaw(t('Trusted Host Settings'));
$this
->assertRaw(t('The trusted_host_patterns setting is not configured in settings.php.'));
}