You are here

public function ConfigInstallTest::testCollectionInstallationNoCollections in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/ConfigInstallTest.php \Drupal\config\Tests\ConfigInstallTest::testCollectionInstallationNoCollections()

Tests that collections are ignored if the event does not return anything.

File

core/modules/config/src/Tests/ConfigInstallTest.php, line 93
Contains \Drupal\config\Tests\ConfigInstallTest.

Class

ConfigInstallTest
Tests installation of configuration objects in installation functionality.

Namespace

Drupal\config\Tests

Code

public function testCollectionInstallationNoCollections() {

  // Install the test module.
  $this
    ->enableModules(array(
    'config_collection_install_test',
  ));
  $this
    ->installConfig(array(
    'config_collection_install_test',
  ));

  /** @var \Drupal\Core\Config\StorageInterface $active_storage */
  $active_storage = \Drupal::service('config.storage');
  $this
    ->assertEqual(array(), $active_storage
    ->getAllCollectionNames());
}