public function ComposerIntegrationTest::providerTestComposerJson in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/ComposerIntegrationTest.php \Drupal\Tests\ComposerIntegrationTest::providerTestComposerJson()
- 9 core/tests/Drupal/Tests/ComposerIntegrationTest.php \Drupal\Tests\ComposerIntegrationTest::providerTestComposerJson()
Data provider for all the composer.json provided by Drupal core.
Return value
array
File
- core/
tests/ Drupal/ Tests/ ComposerIntegrationTest.php, line 79
Class
- ComposerIntegrationTest
- Tests Composer integration.
Namespace
Drupal\TestsCode
public function providerTestComposerJson() {
$data = [];
$composer_json_finder = $this
->getComposerJsonFinder(realpath(__DIR__ . '/../../../../'));
foreach ($composer_json_finder
->getIterator() as $composer_json) {
$data[$composer_json
->getPathname()] = [
$composer_json
->getPathname(),
];
}
return $data;
}