You are here

public function InstallerExistingConfigDirectoryTest::testInstaller in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::testInstaller()
  2. 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 installation when a config_sync_directory exists and is set up.

Namespace

Drupal\FunctionalTests\Installer

Code

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