public function TrustedHostsTest::testStatusPageWithoutConfiguration in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/System/TrustedHostsTest.php \Drupal\system\Tests\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/ src/ Tests/ System/ TrustedHostsTest.php, line 35 - Contains \Drupal\system\Tests\System\TrustedHostsTest.
Class
- TrustedHostsTest
- Tests output on the status overview page.
Namespace
Drupal\system\Tests\SystemCode
public function testStatusPageWithoutConfiguration() {
$this
->drupalGet('admin/reports/status');
$this
->assertResponse(200, 'The status page is reachable.');
$this
->assertRaw(t('Trusted Host Settings'));
$this
->assertRaw(t('The trusted_host_patterns setting is not configured in settings.php.'));
}