function StubTestSuiteBase::findExtensionDirectories

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\StubTestSuiteBase::findExtensionDirectories()
  2. 8.9.x core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php \Drupal\Tests\Core\Test\StubTestSuiteBase::findExtensionDirectories()

Overrides TestSuiteBase::findExtensionDirectories

File

core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php, line 150

Class

StubTestSuiteBase
Stub subclass of TestSuiteBase.

Namespace

Drupal\Tests\Core\Test

Code

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 [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.