function DrupalAutoloader::addCoreTestNamespaces
1 call to DrupalAutoloader::addCoreTestNamespaces()
- DrupalAutoloader::register in vendor/
mglaman/ phpstan-drupal/ src/ Drupal/ DrupalAutoloader.php
File
-
vendor/
mglaman/ phpstan-drupal/ src/ Drupal/ DrupalAutoloader.php, line 263
Class
Namespace
mglaman\PHPStanDrupal\DrupalCode
protected function addCoreTestNamespaces() : void {
// Add core test namespaces.
$core_tests_dir = $this->drupalRoot . '/core/tests/Drupal';
$this->namespaces['Drupal\\BuildTests'] = $core_tests_dir . '/BuildTests';
$this->namespaces['Drupal\\FunctionalJavascriptTests'] = $core_tests_dir . '/FunctionalJavascriptTests';
$this->namespaces['Drupal\\FunctionalTests'] = $core_tests_dir . '/FunctionalTests';
$this->namespaces['Drupal\\KernelTests'] = $core_tests_dir . '/KernelTests';
$this->namespaces['Drupal\\Tests'] = $core_tests_dir . '/Tests';
$this->namespaces['Drupal\\TestSite'] = $core_tests_dir . '/TestSite';
$this->namespaces['Drupal\\TestTools'] = $core_tests_dir . '/TestTools';
$this->namespaces['Drupal\\Tests\\TestSuites'] = $this->drupalRoot . '/core/tests/TestSuites';
}