class ComposerValidateTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php \Drupal\BuildTests\Composer\ComposerValidateTest
- 10 core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php \Drupal\BuildTests\Composer\ComposerValidateTest
- 8.9.x core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php \Drupal\BuildTests\Composer\ComposerValidateTest
@group Composer @requires externalCommand composer
Hierarchy
- class \Drupal\BuildTests\Framework\BuildTestBase uses \Drupal\BuildTests\Framework\ExternalCommandRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\BuildTests\Composer\ComposerValidateTest uses \Drupal\Tests\Composer\ComposerIntegrationTrait extends \Drupal\BuildTests\Framework\BuildTestBase
Expanded class hierarchy of ComposerValidateTest
File
-
core/
tests/ Drupal/ BuildTests/ Composer/ ComposerValidateTest.php, line 12
Namespace
Drupal\BuildTests\ComposerView source
class ComposerValidateTest extends BuildTestBase {
use ComposerIntegrationTrait;
public function provideComposerJson() {
$data = [];
$composer_json_finder = $this->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();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.