// 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) { $this->availableExtensions
[$extension->
getType()][$name] =
$name;
$base_path =
$this->root . '/' .
$extension->
getPath();
// Add namespace of disabled/uninstalled extensions.
if (!
isset($existing["Drupal\\
$name\\"
])) { $this->classLoader->
addPsr4("Drupal\\
$name\\", "
$base_path/src"
);
} // Add PHPUnit test namespaces.
$this->testNamespaces
["Drupal\\Tests\\
$name\\Unit\\"
][] = "
$base_path/tests/src/Unit";
$this->testNamespaces
["Drupal\\Tests\\
$name\\Kernel\\"
][] = "
$base_path/tests/src/Kernel";