You are here

protected function InstallerTest::setUpSite in Drupal 8

Same name and namespace in other branches
  1. 9 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 91

Class

InstallerTest
Tests the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpSite() {

  // Assert that the expected title is present.
  $this
    ->assertEqual('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
    ->get('app.root') . '/' . $this->siteDirectory;
  $this
    ->assertDirectoryNotIsWritable($site_directory);
  $this
    ->assertFileNotIsWritable($site_directory . '/settings.php');
  parent::setUpSite();
}