function FakeSiteFixtureTest::testComposerValidate

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/src/Kernel/FakeSiteFixtureTest.php \Drupal\Tests\package_manager\Kernel\FakeSiteFixtureTest::testComposerValidate()

Tests that the fixture passes `composer validate`.

File

core/modules/package_manager/tests/src/Kernel/FakeSiteFixtureTest.php, line 150

Class

FakeSiteFixtureTest
Test that the 'fake-site' fixture is a valid starting point.

Namespace

Drupal\Tests\package_manager\Kernel

Code

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.