function InstallerExistingConfigDirectoryTest::testInstaller
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::testInstaller()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::testInstaller()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::testInstaller()
Verifies that installation succeeded.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigDirectoryTest.php, line 42
Class
- InstallerExistingConfigDirectoryTest
- Tests installation when a config_sync_directory exists and is set up.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstaller() : void {
$this->assertSession()
->addressEquals('user/1');
$this->assertSession()
->statusCodeEquals(200);
$this->assertEquals($this->expectedFilePerms, fileperms($this->siteDirectory . '/config_read_only'));
$this->assertEquals([], glob($this->siteDirectory . '/config_read_only/*'), 'The sync directory is empty after install because it is read-only.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.