function ComposerBuildTestBase::getComponentPathsFinder
Same name in other branches
- 9 core/tests/Drupal/BuildTests/Composer/ComposerBuildTestBase.php \Drupal\BuildTests\Composer\ComposerBuildTestBase::getComponentPathsFinder()
- 11.x core/tests/Drupal/BuildTests/Composer/ComposerBuildTestBase.php \Drupal\BuildTests\Composer\ComposerBuildTestBase::getComponentPathsFinder()
Find all the composer.json files for components.
Parameters
string $drupal_root: The Drupal root directory.
Return value
\Symfony\Component\Finder\Finder A Finder object with all the composer.json files for components.
2 calls to ComposerBuildTestBase::getComponentPathsFinder()
- ComponentsIsolatedBuildTest::provideComponentPaths in core/
tests/ Drupal/ BuildTests/ Composer/ Component/ ComponentsIsolatedBuildTest.php - Provides an array with relative paths to the component paths.
- ComponentsTaggedReleaseTest::testReleaseTagging in core/
tests/ Drupal/ BuildTests/ Composer/ Component/ ComponentsTaggedReleaseTest.php - Validate release tagging and regeneration of dependencies.
File
-
core/
tests/ Drupal/ BuildTests/ Composer/ ComposerBuildTestBase.php, line 54
Class
- ComposerBuildTestBase
- Base class for Composer build tests.
Namespace
Drupal\BuildTests\ComposerCode
protected static function getComponentPathsFinder(string $drupal_root) : Finder {
$finder = new Finder();
$finder->name('composer.json')
->in($drupal_root . static::$componentsPath)
->ignoreUnreadableDirs()
->depth(1);
return $finder;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.