You are here

public function ConfigOtherModuleTest::testInstallConfigEntityModuleFirst in Drupal 8

Same name and namespace in other branches
  1. 9 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 97

Class

ConfigOtherModuleTest
Tests default configuration provided by a module that does not own it.

Namespace

Drupal\Tests\config\Functional

Code

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