public function DrupalCheckIncompatibilityTest::testDrupalCheckIncompatibility in Drupal 8
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\CommonCode
public function testDrupalCheckIncompatibility($version_info, $version_to_check, $result) {
$this
->assertSame($result, drupal_check_incompatibility($version_info, $version_to_check));
}