function ComposerIntegrationTest::providerTestComposerJson
Same name in this branch
- 11.x core/tests/Drupal/Tests/ComposerIntegrationTest.php \Drupal\Tests\ComposerIntegrationTest::providerTestComposerJson()
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/ComposerIntegrationTest.php \Drupal\Tests\ComposerIntegrationTest::providerTestComposerJson()
- 9 core/tests/Drupal/Tests/ComposerIntegrationTest.php \Drupal\Tests\ComposerIntegrationTest::providerTestComposerJson()
- 8.9.x core/tests/Drupal/Tests/ComposerIntegrationTest.php \Drupal\Tests\ComposerIntegrationTest::providerTestComposerJson()
Data provider for all the composer.json provided by Drupal core.
Return value
array An array of composer.json file paths.
File
-
core/
tests/ Drupal/ Tests/ Composer/ ComposerIntegrationTest.php, line 232
Class
- ComposerIntegrationTest
- Tests Composer integration.
Namespace
Drupal\Tests\ComposerCode
public static function providerTestComposerJson() : array {
$data = [];
$composer_json_finder = self::getComposerJsonFinder(realpath(__DIR__ . '/../../../../../'));
foreach ($composer_json_finder->getIterator() as $composer_json) {
$data[$composer_json->getPathname()] = [
$composer_json->getPathname(),
];
}
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.