function FakeSiteFixtureTest::testComposerValidate
Tests that the fixture passes `composer validate`.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ FakeSiteFixtureTest.php, line 147
Class
- FakeSiteFixtureTest
- Test that the 'fake-site' fixture is a valid starting point.
Namespace
Drupal\Tests\package_manager\KernelCode
public function testComposerValidate() : void {
$active_dir = $this->container
->get(PathLocator::class)
->getProjectRoot();
$process = new Process([
'composer',
'validate',
'--check-lock',
'--with-dependencies',
'--no-interaction',
'--ansi',
'--no-cache',
], $active_dir);
$process->mustRun();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.