function KernelTestBase::beforePrepareEnvironment

Overrides TestBase::beforePrepareEnvironment

File

core/modules/simpletest/src/KernelTestBase.php, line 130

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\simpletest

Code

protected function beforePrepareEnvironment() {
    // Copy/prime extension file lists once to avoid filesystem scans.
    if (!isset($this->moduleFiles)) {
        $this->moduleFiles = \Drupal::state()->get('system.module.files') ?: [];
        $this->themeFiles = \Drupal::state()->get('system.theme.files') ?: [];
    }
}

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