function DrupalBootTest::initOnce in X Autoload 7.5
2 calls to DrupalBootTest::initOnce()
- DrupalBootTest::prepare in tests/
src/ DrupalBootTest/ DrupalBootTest.php - setUp() does not help us because of the process sharing problem. So we use this instead.
- DrupalBootTest::providerModuleEnable in tests/
src/ DrupalBootTest/ DrupalBootTest.php
File
- tests/
src/ DrupalBootTest/ DrupalBootTest.php, line 115
Class
- DrupalBootTest
- @runTestsInSeparateProcesses @preserveGlobalState disabled
Namespace
Drupal\xautoload\Tests\DrupalBootTestCode
function initOnce() {
if (isset($this->exampleDrupal)) {
return;
}
$this->exampleModules = new ExampleModules();
$this->exampleDrupal = new DrupalEnvironment($this->exampleModules);
$this->exampleDrupal
->setStaticInstance();
}