diff --git a/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php b/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php index b53f162dbd..07dab44f04 100644 --- a/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php @@ -33,12 +33,11 @@ public function testDrupalSetTimeLimit() { /** * @expectedDeprecation archiver_get_extensions() is deprecated in Drupal 8.7.0 and will be removed in Drupal 9.0.0. Use \Drupal\Core\Archiver\ArchiverManager::getExtensions() instead. See https://www.drupal.org/node/2999951 */ - public function _testArchiverGetExtensions() { + public function testArchiverGetExtensions() { $expected = \Drupal::service('plugin.manager.archiver')->getExtensions(); $this->assertEquals($expected, archiver_get_extensions()); } - /** * @expectedDeprecation archiver_get_archiver() is deprecated in Drupal 8.7.0 and will be removed in Drupal 9.0.x. Instead, get plugin.manager.archiver service from container and call getInstance() method on it. For example $archiver->getInstance(["filepath" => $file]); See https://www.drupal.org/node/2999951 */