public function ConfigOtherModuleTest::testInstallConfigEntityModuleFirst in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php \Drupal\Tests\config\Functional\ConfigOtherModuleTest::testInstallConfigEntityModuleFirst()
- 10 core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php \Drupal\Tests\config\Functional\ConfigOtherModuleTest::testInstallConfigEntityModuleFirst()
Tests enabling the provider of the config entity type first.
File
- core/
modules/ config/ tests/ src/ Functional/ ConfigOtherModuleTest.php, line 98
Class
- ConfigOtherModuleTest
- Tests default configuration provided by a module that does not own it.
Namespace
Drupal\Tests\config\FunctionalCode
public function testInstallConfigEntityModuleFirst() {
$this
->installModule('config_test');
$this
->assertNull($this
->getStorage()
->load('other_module_test'), 'Default configuration provided by config_other_module_config_test does not exist.');
$this
->installModule('config_other_module_config_test');
$this
->assertNotEmpty($this
->getStorage()
->load('other_module_test'), 'Default configuration provided by config_other_module_config_test has been installed.');
}