return $data;
} /**
* Test whether components' composer.json can be installed in isolation.
*
* @dataProvider provideComponentPaths
*/
public function testComponentComposerJson(string
$component_path): void
{ // Only copy the components. Copy all of them because some of them depend on
// each other.
$finder =
$this->
getCodebaseFinder();
$finder->
in($this->
getDrupalRoot() .
static::
$componentsPath);
$this->
copyCodebase($finder->
getIterator());
$working_dir =
$this->
getWorkingPath() .
static::
$componentsPath .
$component_path;
// We add path repositories so we can wire internal dependencies together.
$this->
addExpectedRepositories($working_dir);
// Perform the installation.
$this->
executeCommand("composer install --working-dir=
$working_dir --no-interaction --no-progress"
);
$this->
assertCommandSuccessful();
}