You are here

public function ConstraintTest::testIsCompatible in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Version/ConstraintTest.php \Drupal\Tests\Component\Version\ConstraintTest::testIsCompatible()
  2. 9 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 18

Class

ConstraintTest
@coversDefaultClass \Drupal\Component\Version\Constraint @group Version

Namespace

Drupal\Tests\Component\Version

Code

public function testIsCompatible(Constraint $version_info, $current_version, $result) {
  $this
    ->assertSame($result, $version_info
    ->isCompatible($current_version));
}