function LegacyFunctionsTest::testArchiverGetExtensions

@expectedDeprecation archiver_get_extensions() is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. Use \Drupal\Core\Archiver\ArchiverManager::getExtensions() instead. See https://www.drupal.org/node/2999951

File

core/tests/Drupal/KernelTests/Core/Common/LegacyFunctionsTest.php, line 37

Class

LegacyFunctionsTest
Tests legacy functions in common.inc.

Namespace

Drupal\KernelTests\Core\Common

Code

public function testArchiverGetExtensions() {
    $expected = \Drupal::service('plugin.manager.archiver')->getExtensions();
    $this->assertEquals($expected, archiver_get_extensions());
}

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