You are here

public function InstallTest::testEnableUserTwice in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Module/InstallTest.php \Drupal\system\Tests\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/src/Tests/Module/InstallTest.php, line 43
Contains \Drupal\system\Tests\Module\InstallTest.

Class

InstallTest
Tests the installation of modules.

Namespace

Drupal\system\Tests\Module

Code

public function testEnableUserTwice() {
  \Drupal::service('module_installer')
    ->install(array(
    'user',
  ), FALSE);
  $this
    ->assertIdentical($this
    ->config('core.extension')
    ->get('module.user'), 0);
}