function ConstraintTest::testIsCompatible
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Version/ConstraintTest.php \Drupal\Tests\Component\Version\ConstraintTest::testIsCompatible()
- 8.9.x core/tests/Drupal/Tests/Component/Version/ConstraintTest.php \Drupal\Tests\Component\Version\ConstraintTest::testIsCompatible()
- 10 core/tests/Drupal/Tests/Component/Version/ConstraintTest.php \Drupal\Tests\Component\Version\ConstraintTest::testIsCompatible()
@covers ::isCompatible @dataProvider providerIsCompatible
File
-
core/
tests/ Drupal/ Tests/ Component/ Version/ ConstraintTest.php, line 20
Class
- ConstraintTest
- @coversDefaultClass \Drupal\Component\Version\Constraint @group Version
Namespace
Drupal\Tests\Component\VersionCode
public function testIsCompatible(Constraint $version_info, string $current_version, bool $result) : void {
$this->assertSame($result, $version_info->isCompatible($current_version));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.