function ProfileSkipInstallTest::testProfileNotInstalled
Tests that the profile was never installed.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ ProfileSkipInstallTest.php, line 30
Class
- ProfileSkipInstallTest
- Tests not installing a profile that opts out of it.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testProfileNotInstalled() : void {
// The profile skips install, so should never have been installed.
$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.