function ExcludedModulesEventSubscriberTest::setUp

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php \Drupal\KernelTests\Core\Config\ExcludedModulesEventSubscriberTest::setUp()
  2. 10 core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php \Drupal\KernelTests\Core\Config\ExcludedModulesEventSubscriberTest::setUp()
  3. 11.x core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php \Drupal\KernelTests\Core\Config\ExcludedModulesEventSubscriberTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php, line 26

Class

ExcludedModulesEventSubscriberTest
Tests ExcludedModulesEventSubscriber.

Namespace

Drupal\KernelTests\Core\Config

Code

protected function setUp() {
    parent::setUp();
    $this->installConfig([
        'system',
        'config_test',
        'config_exclude_test',
    ]);
    $this->setSetting('config_exclude_modules', [
        'config_test',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.