public function UninstalledProfileModulesTest::testInstaller in Configuration installer 8
Runs tests after install.
Overrides ConfigInstallerTestBase::testInstaller
File
- tests/
src/ Functional/ UninstalledProfileModulesTest.php, line 35
Class
- UninstalledProfileModulesTest
- Tests config installer when module dependencies of a profile are uninstalled.
Namespace
Drupal\Tests\config_installer\FunctionalCode
public function testInstaller() {
$this
->assertResponse(200);
// Ensure that all modules, profile and themes have been installed and have
// expected weights.
$sync = \Drupal::service('config.storage.sync');
$sync_core_extension = $sync
->read('core.extension');
$this
->assertIdentical($sync_core_extension, \Drupal::config('core.extension')
->get());
$this
->assertFalse(\Drupal::moduleHandler()
->moduleExists('contact'), 'Contact module is not installed.');
}