function DrupalCheckIncompatibilityTest::testDrupalCheckIncompatibility

Tests drupal_check_incompatibility().

@dataProvider providerDrupalCheckIncompatibility @expectedDeprecation drupal_check_incompatibility() is deprecated. Use \Drupal\Core\Extension\Dependency::isCompatible() instead. See https://www.drupal.org/node/2756875

File

core/tests/Drupal/KernelTests/Core/Common/DrupalCheckIncompatibilityTest.php, line 23

Class

DrupalCheckIncompatibilityTest
Parse a predefined amount of bytes and compare the output with the expected value.

Namespace

Drupal\KernelTests\Core\Common

Code

public function testDrupalCheckIncompatibility($version_info, $version_to_check, $result) {
    $this->assertSame($result, drupal_check_incompatibility($version_info, $version_to_check));
}

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