public function InstallerConfigDirectorySetNoDirectoryErrorTest::testError in Drupal 9
Same name and namespace in other branches
- 8 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 installation when a config_sync_directory is set up but does not exist.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testError() {
$this
->assertSession()
->pageTextContains("An automated attempt to create the directory {$this->configDirectory}/sync failed, possibly due to a permissions problem.");
$this
->assertDirectoryDoesNotExist($this->configDirectory . '/sync');
}