function ProfileAutoUninstallTest::testAutomaticUninstall
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalTests/Installer/ProfileAutoUninstallTest.php \Drupal\FunctionalTests\Installer\ProfileAutoUninstallTest::testAutomaticUninstall()
Tests that the profile was automatically uninstalled.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ ProfileAutoUninstallTest.php, line 30
Class
- ProfileAutoUninstallTest
- Tests automatically uninstalling a profile that opts into it.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testAutomaticUninstall() : void {
// The profile included no in-use dependencies, and therefore should
// have been successfully uninstalled.
$extensions = $this->config('core.extension')
->get();
$this->assertArrayNotHasKey($this->profile, $extensions['module']);
$this->assertArrayNotHasKey('profile', $extensions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.