public function UpdateDeprecationTest::testDrupalGetSchemaVersionsLegacyTest in Drupal 9
Deprecation testing for drupal_get_schema_versions function.
See also
File
- core/
tests/ Drupal/ KernelTests/ Core/ Extension/ UpdateDeprecationTest.php, line 51
Class
- UpdateDeprecationTest
- Tests deprecated update.inc functions.
Namespace
Drupal\KernelTests\Core\ExtensionCode
public function testDrupalGetSchemaVersionsLegacyTest() {
$this
->expectDeprecation('drupal_get_schema_versions() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \\Drupal\\Core\\Update\\UpdateHookRegistry::getAvailableUpdates() instead. See https://www.drupal.org/node/2444417');
$this
->assertEmpty(drupal_get_schema_versions('update_test_schema'));
}