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