function UpdateDeprecationTest::testDrupalGetSchemaVersionsLegacyTest

Deprecation testing for drupal_get_schema_versions function.

See also

drupal_get_schema_versions()

File

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

Class

UpdateDeprecationTest
Tests deprecated update.inc functions.

Namespace

Drupal\KernelTests\Core\Extension

Code

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'));
}

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