public function ConfigOtherModuleTest::testUninstall in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/src/Tests/ConfigOtherModuleTest.php \Drupal\config\Tests\ConfigOtherModuleTest::testUninstall()
Tests uninstalling Node module removes views which are dependent on it.
File
- core/
modules/ config/ src/ Tests/ ConfigOtherModuleTest.php, line 86 - Contains \Drupal\config\Tests\ConfigOtherModuleTest.
Class
- ConfigOtherModuleTest
- Tests default configuration provided by a module that does not own it.
Namespace
Drupal\config\TestsCode
public function testUninstall() {
$this
->installModule('views');
$this
->assertTrue(entity_load('view', 'frontpage', TRUE) === NULL, 'After installing Views, frontpage view which is dependant on the Node and Views modules does not exist.');
$this
->installModule('node');
$this
->assertTrue(entity_load('view', 'frontpage', TRUE) !== NULL, 'After installing Node, frontpage view which is dependant on the Node and Views modules exists.');
$this
->uninstallModule('node');
$this
->assertTrue(entity_load('view', 'frontpage', TRUE) === NULL, 'After uninstalling Node, frontpage view which is dependant on the Node and Views modules does not exist.');
}