function InstallerConfigDirectorySetNoDirectoryErrorTest::testError

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

Verifies that installation failed.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectorySetNoDirectoryErrorTest.php, line 61

Class

InstallerConfigDirectorySetNoDirectoryErrorTest
Tests the installer when a config_directory set up but does not exist.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testError() {
    $this->assertText("An automated attempt to create the directory {$this->configDirectory}/sync failed, possibly due to a permissions problem.");
    $this->assertDirectoryNotExists($this->configDirectory . '/sync');
}

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