public function InstallerExistingConfigDirectoryTest::testInstaller in Drupal 9
Same name and namespace in other branches
- 8 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 40
Class
- InstallerExistingConfigDirectoryTest
- Tests installation when a config_sync_directory exists and is set up.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstaller() {
$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.');
}