protected function StubTestSuiteBase::findExtensionDirectories in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\StubTestSuiteBase::findExtensionDirectories()
- 9 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\StubTestSuiteBase::findExtensionDirectories()
Finds extensions in a Drupal installation.
An extension is defined as a directory with an *.info.yml file in it.
Parameters
string $root: Path to the root of the Drupal installation.
Return value
string[] Associative array of extension paths, with extension name as keys.
Overrides TestSuiteBase::findExtensionDirectories
File
- core/
tests/ Drupal/ Tests/ Core/ Test/ TestSuiteBaseTest.php, line 133
Class
- StubTestSuiteBase
- Stub subclass of TestSuiteBase.
Namespace
Drupal\Tests\Core\TestCode
protected function findExtensionDirectories($root) {
// We have to stub findExtensionDirectories() because we can't inject a
// vfsStream filesystem into drupal_phpunit_find_extension_directories(),
// which uses \SplFileInfo->getRealPath(). getRealPath() resolves
// stream-based paths to an empty string. See
// https://github.com/mikey179/vfsStream/wiki/Known-Issues
return [];
}