public function InstallerExistingConfigDirectoryTest::testInstaller in Drupal 8
Same name and namespace in other branches
- 9 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 the installer when a config_directory has already been set up.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstaller() {
$this
->assertUrl('user/1');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertEqual($this->expectedFilePerms, fileperms($this->siteDirectory . '/config_read_only'));
$this
->assertEqual([], glob($this->siteDirectory . '/config_read_only/*'), 'The sync directory is empty after install because it is read-only.');
}