function ComposerValidateTest::testValidateComposer

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

@dataProvider provideComposerJson

File

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

Class

ComposerValidateTest
@group Composer

Namespace

Drupal\BuildTests\Composer

Code

public function testValidateComposer($path) : void {
    $this->executeCommand('composer validate --strict --no-check-all ' . $path);
    $this->assertCommandSuccessful();
}

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