getComposerJsonFinder($this->getDrupalRoot()); foreach ($composer_json_finder->getIterator() as $composer_json) { $data[] = [$composer_json->getPathname()]; } return $data; } /** * @dataProvider provideComposerJson */ public function testValidateComposer($path) { $this->executeCommand('composer validate --strict --no-check-all ' . $path); $this->assertCommandSuccessful(); } }