function InstallerTest::setUpSite

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSite()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSite()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpSite()

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.