function ComposerTest::testEnsureComposerVersion
Same name and namespace in other branches
- 11.x 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()
- 9 core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest::testEnsureComposerVersion()
- 8.9.x core/tests/Drupal/Tests/Composer/ComposerTest.php \Drupal\Tests\Composer\ComposerTest::testEnsureComposerVersion()
Verify that Composer::ensureComposerVersion() doesn't break.
Attributes
#[DoesNotPerformAssertions]
File
-
core/
tests/ Drupal/ Tests/ Composer/ ComposerTest.php, line 23
Class
Namespace
Drupal\Tests\ComposerCode
public function testEnsureComposerVersion() : void {
try {
Composer::ensureComposerVersion();
} catch (\RuntimeException $e) {
$this->assertMatchesRegularExpression('/Drupal core development requires Composer 2.3.5, but Composer /', $e->getMessage());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.