public function ComposerTest::testEnsureComposerVersion in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest::testEnsureComposerVersion()
- 10 core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest::testEnsureComposerVersion()
Verify that Composer::ensureComposerVersion() doesn't break.
@covers::ensureComposerVersion
File
- core/
tests/ Drupal/ Tests/ Composer/ ComposerTest.php, line 19
Class
- ComposerTest
- @coversDefaultClass \Drupal\Composer\Composer @group Composer
Namespace
Drupal\Tests\ComposerCode
public function testEnsureComposerVersion() {
try {
$this
->assertNull(Composer::ensureComposerVersion());
} catch (\RuntimeException $e) {
$this
->assertMatchesRegularExpression('/Drupal core development requires Composer 1.9.0, but Composer /', $e
->getMessage());
}
}