function DependencyTest::testIsCompatible

Tests is compatible.

@legacy-covers ::isCompatible

File

core/tests/Drupal/Tests/Core/Extension/DependencyTest.php, line 51

Class

DependencyTest
Tests Drupal\Core\Extension\Dependency.

Namespace

Drupal\Tests\Core\Extension

Code

public function testIsCompatible() : void {
  $dependency = new Dependency('paragraphs_demo', 'paragraphs', '>8.x-1.1');
  $this->assertFalse($dependency->isCompatible('1.1'));
  $this->assertTrue($dependency->isCompatible('1.2'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.