public function UpdateDeprecationTest::testUpdateCheckIncompatibility in Drupal 9
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\ExtensionCode
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'));
}