protected function StatusTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/System/StatusTest.php \Drupal\Tests\system\Functional\System\StatusTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ system/ tests/ src/ Functional/ System/ StatusTest.php, line 29
Class
- StatusTest
- Tests output on the status overview page.
Namespace
Drupal\Tests\system\Functional\SystemCode
protected function setUp() {
parent::setUp();
// Unset the sync directory in settings.php to trigger the error.
$settings['settings']['config_sync_directory'] = (object) [
'value' => '',
'required' => TRUE,
];
$this
->writeSettings($settings);
$admin_user = $this
->drupalCreateUser([
'administer site configuration',
]);
$this
->drupalLogin($admin_user);
}