function UpdateDeprecationTest::testUpdateCheckIncompatibility

Tests update_check_incompatibility() function.

File

core/tests/Drupal/KernelTests/Core/Extension/UpdateDeprecationTest.php, line 30

Class

UpdateDeprecationTest
Tests deprecated update.inc functions.

Namespace

Drupal\KernelTests\Core\Extension

Code

public function testUpdateCheckIncompatibility() {
    $this->expectDeprecation('update_check_incompatibility() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3150727');
    $this->assertTrue(update_check_incompatibility('incompatible_module'));
    $this->assertFalse(update_check_incompatibility('system'));
}

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