function InstallTest::testEnableUserTwice
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Module/InstallTest.php \Drupal\Tests\system\Functional\Module\InstallTest::testEnableUserTwice()
- 10 core/modules/system/tests/src/Kernel/Module/InstallTest.php \Drupal\Tests\system\Kernel\Module\InstallTest::testEnableUserTwice()
- 11.x core/modules/system/tests/src/Kernel/Module/InstallTest.php \Drupal\Tests\system\Kernel\Module\InstallTest::testEnableUserTwice()
Tests enabling User module once more.
Regression: The installer might enable a module twice due to automatic dependency resolution. A bug caused the stored weight for User module to be an array.
File
-
core/
modules/ system/ tests/ src/ Functional/ Module/ InstallTest.php, line 45
Class
- InstallTest
- Tests the installation of modules.
Namespace
Drupal\Tests\system\Functional\ModuleCode
public function testEnableUserTwice() {
\Drupal::service('module_installer')->install([
'user',
], FALSE);
$this->assertIdentical($this->config('core.extension')
->get('module.user'), 0);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.