function InstallerExtensionListDeprecationTest::testExtensionListTraitDeprecation

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Installer/InstallerExtensionListDeprecationTest.php \Drupal\Tests\Core\Installer\InstallerExtensionListDeprecationTest::testExtensionListTraitDeprecation()

Tests the installer extension list trait deprecation.

File

core/tests/Drupal/Tests/Core/Installer/InstallerExtensionListDeprecationTest.php, line 21

Class

InstallerExtensionListDeprecationTest
Tests deprecations for installer extension list compatibility layers.

Namespace

Drupal\Tests\Core\Installer

Code

public function testExtensionListTraitDeprecation() : void {
  $this->expectUserDeprecationMessage('Drupal\\Core\\Installer\\ExtensionListTrait is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement; the base extension list behavior now provides the same functionality. See https://www.drupal.org/node/3577846');
  $this->assertTrue(trait_exists('Drupal\\Core\\Installer\\ExtensionListTrait'));
}

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