diff --git a/core/tests/Drupal/KernelTests/Core/Extension/UpdateDeprecationTest.php b/core/tests/Drupal/KernelTests/Core/Extension/UpdateDeprecationTest.php index 21f739d4a9..6e6f8584a4 100644 --- a/core/tests/Drupal/KernelTests/Core/Extension/UpdateDeprecationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Extension/UpdateDeprecationTest.php @@ -43,27 +43,4 @@ public function testUpdateSetSchema() { $this->assertEquals(8003, \Drupal::keyValue('system.schema')->get('update_test_schema')); } - /** - * Deprecation testing for drupal_get_schema_versions function. - * - * @see drupal_get_schema_versions() - */ - 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')); - } - - /** - * Deprecation testing for drupal installed schema version functions. - * - * @see drupal_get_installed_schema_version() - * @see drupal_set_installed_schema_version() - */ - public function testDrupalGetInstalledSchemaVersion() { - $this->expectDeprecation('drupal_get_installed_schema_version() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion() or \Drupal\Core\Update\UpdateHookRegistry::getAllInstalledVersions() instead. See https://www.drupal.org/node/2444417'); - $this->assertIsArray(drupal_get_installed_schema_version(NULL, TRUE, TRUE)); - $this->expectDeprecation('drupal_set_installed_schema_version() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::setInstalledVersion() instead. See https://www.drupal.org/node/2444417'); - drupal_set_installed_schema_version('system', 8001); - } - }