public function registerTestNamespaces() { if (isset($this->testNamespaces
)) { return $this->testNamespaces;
} $this->testNamespaces =
[];
$existing =
$this->classLoader->
getPrefixesPsr4();
// Add PHPUnit test namespaces of Drupal core.
$this->testNamespaces
['Drupal\\Tests\\'
] =
[$this->root . '/core/tests/Drupal/Tests'
];
$this->testNamespaces
['Drupal\\BuildTests\\'
] =
[$this->root . '/core/tests/Drupal/BuildTests'
];
$this->testNamespaces
['Drupal\\KernelTests\\'
] =
[$this->root . '/core/tests/Drupal/KernelTests'
];
$this->testNamespaces
['Drupal\\FunctionalTests\\'
] =
[$this->root . '/core/tests/Drupal/FunctionalTests'
];
$this->testNamespaces
['Drupal\\FunctionalJavascriptTests\\'
] =
[$this->root . '/core/tests/Drupal/FunctionalJavascriptTests'
];
$this->testNamespaces
['Drupal\\TestTools\\'
] =
[$this->root . '/core/tests/Drupal/TestTools'
];
$this->availableExtensions =
[];
foreach ($this->
getExtensions() as $name =>
$extension) {