function InstallerConfigDirectorySetNoDirectoryErrorTest::testError

Verifies that installation failed.

File

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

Class

InstallerConfigDirectorySetNoDirectoryErrorTest
Tests installation when a config_sync_directory is set up but does not exist.

Namespace

Drupal\FunctionalTests\Installer

Code

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

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