function ComposerValidateTest::provideComposerJson

Same name in other branches
  1. 8.9.x core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php \Drupal\BuildTests\Composer\ComposerValidateTest::provideComposerJson()
  2. 10 core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php \Drupal\BuildTests\Composer\ComposerValidateTest::provideComposerJson()
  3. 11.x core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php \Drupal\BuildTests\Composer\ComposerValidateTest::provideComposerJson()

File

core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php, line 16

Class

ComposerValidateTest
@group Composer @requires externalCommand composer

Namespace

Drupal\BuildTests\Composer

Code

public function provideComposerJson() {
    $data = [];
    $composer_json_finder = $this->getComposerJsonFinder($this->getDrupalRoot());
    foreach ($composer_json_finder->getIterator() as $composer_json) {
        $data[] = [
            $composer_json->getPathname(),
        ];
    }
    return $data;
}

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