You are here

public function ConfigOtherModuleTest::testInstallConfigEntityModuleFirst in Zircon Profile 8

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

Tests enabling the provider of the config entity type first.

File

core/modules/config/src/Tests/ConfigOtherModuleTest.php, line 75
Contains \Drupal\config\Tests\ConfigOtherModuleTest.

Class

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

Namespace

Drupal\config\Tests

Code

public function testInstallConfigEntityModuleFirst() {
  $this
    ->installModule('config_test');
  $this
    ->assertFalse(entity_load('config_test', 'other_module_test', TRUE), 'Default configuration provided by config_other_module_config_test does not exist.');
  $this
    ->installModule('config_other_module_config_test');
  $this
    ->assertTrue(entity_load('config_test', 'other_module_test', TRUE), 'Default configuration provided by config_other_module_config_test has been installed.');
}