You are here

public function ConfigInstallerSyncTest::testInstaller in Configuration installer 8

Ensures that the user page is available after installation.

Overrides ConfigInstallerTestBase::testInstaller

File

tests/src/Functional/ConfigInstallerSyncTest.php, line 32

Class

ConfigInstallerSyncTest
Tests the config installer profile by having files in a sync directory.

Namespace

Drupal\Tests\config_installer\Functional

Code

public function testInstaller() {

  // Do assertions from parent.
  parent::testInstaller();

  // Do assertions specific to test.
  $this
    ->assertEqual(drupal_realpath($this->syncDir), config_get_config_directory(CONFIG_SYNC_DIRECTORY), 'The sync directory has been updated during the installation.');
  $this
    ->assertEqual(USER_REGISTER_ADMINISTRATORS_ONLY, \Drupal::config('user.settings')
    ->get('register'), 'Ensure standard_install() does not overwrite user.settings::register.');
  $this
    ->assertEqual([], \Drupal::entityDefinitionUpdateManager()
    ->getChangeSummary(), 'There are no entity or field definition updates.');
}