function ConfigInstallTest::testCollectionInstallationNoCollections
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php \Drupal\KernelTests\Core\Config\ConfigInstallTest::testCollectionInstallationNoCollections()
- 10 core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php \Drupal\KernelTests\Core\Config\ConfigInstallTest::testCollectionInstallationNoCollections()
- 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php \Drupal\KernelTests\Core\Config\ConfigInstallTest::testCollectionInstallationNoCollections()
Tests that collections are ignored if the event does not return anything.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigInstallTest.php, line 87
Class
- ConfigInstallTest
- Tests installation of configuration objects in installation functionality.
Namespace
Drupal\KernelTests\Core\ConfigCode
public function testCollectionInstallationNoCollections() {
// Install the test module.
$this->enableModules([
'config_collection_install_test',
]);
$this->installConfig([
'config_collection_install_test',
]);
/** @var \Drupal\Core\Config\StorageInterface $active_storage */
$active_storage = \Drupal::service('config.storage');
$this->assertEquals([], $active_storage->getAllCollectionNames());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.