protected function InstallerTest::setUpSite in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSite()
Final installer step: Configure site.
Overrides InstallerTestBase::setUpSite
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTest.php, line 98
Class
- InstallerTest
- Tests the interactive installer.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function setUpSite() {
// Assert that the expected title is present.
$this
->assertEquals('Configure site', $this
->cssSelect('main h2')[0]
->getText());
// Test that SiteConfigureForm::buildForm() has made the site directory and
// the settings file non-writable.
$site_directory = $this->container
->getParameter('app.root') . '/' . $this->siteDirectory;
$this
->assertDirectoryIsNotWritable($site_directory);
$this
->assertFileIsNotWritable($site_directory . '/settings.php');
parent::setUpSite();
}