Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DrupalAutoloader.php

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

DrupalAutoloader

Namespace

mglaman\PHPStanDrupal\Drupal

Code

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';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal