You are here

private function DrupalBootTest::initialModulesVariations in X Autoload 7.5

Parameters

bool $install:

Return value

array[] Variations of modules being either

  • enabled (TRUE),
  • installed but disabled (FALSE), or
  • not installed (NULL).

Structure: array(..., array( 'system' => TRUE, 'xautoload' => FALSE, 'libraries' => NULL), ...)

1 call to DrupalBootTest::initialModulesVariations()
DrupalBootTest::providerModuleEnable in tests/src/DrupalBootTest/DrupalBootTest.php

File

tests/src/DrupalBootTest/DrupalBootTest.php, line 35

Class

DrupalBootTest
@runTestsInSeparateProcesses @preserveGlobalState disabled

Namespace

Drupal\xautoload\Tests\DrupalBootTest

Code

private function initialModulesVariations($install) {
  $variations = array();
  $state = $install ? NULL : FALSE;
  $variation = array(
    'system' => TRUE,
  );
  $variation += array_fill_keys(array_keys($this->exampleModules
    ->getExampleClasses()), $state);
  $variations[] = $variation;
  foreach (array(
    'xautoload',
  ) as $module) {
    $variations = $this
      ->providerArrayKeyVariations($variations, $module, array(
      TRUE,
      FALSE,
      NULL,
    ));
  }
  return $variations;
}