function InstallerExtensionListDeprecationTest::testInstallerThemeExtensionListDeprecation

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

Tests the installer theme extension list deprecation.

File

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

Class

InstallerExtensionListDeprecationTest
Tests deprecations for installer extension list compatibility layers.

Namespace

Drupal\Tests\Core\Installer

Code

public function testInstallerThemeExtensionListDeprecation() : void {
  $this->expectUserDeprecationMessage('Drupal\\Core\\Installer\\InstallerThemeExtensionList is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use Drupal\\Core\\Extension\\ThemeExtensionList instead. See https://www.drupal.org/node/3577846');
  $this->assertTrue(class_exists('Drupal\\Core\\Installer\\InstallerThemeExtensionList'));
}

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