public function DependencyTest::testIsCompatible in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Extension/DependencyTest.php \Drupal\Tests\Core\Extension\DependencyTest::testIsCompatible()
- 10 core/tests/Drupal/Tests/Core/Extension/DependencyTest.php \Drupal\Tests\Core\Extension\DependencyTest::testIsCompatible()
@covers ::isCompatible
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ DependencyTest.php, line 41
Class
- DependencyTest
- @coversDefaultClass \Drupal\Core\Extension\Dependency @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function testIsCompatible() {
$dependency = new Dependency('paragraphs_demo', 'paragraphs', '>8.x-1.1');
$this
->assertFalse($dependency
->isCompatible('1.1'));
$this
->assertTrue($dependency
->isCompatible('1.2'));
}