function LegacyStatusReportTest::testGetSeveritiesDeprecation
Tests the getSeverities() method deprecation.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ LegacyStatusReportTest.php, line 21
Class
- LegacyStatusReportTest
- Tests the status report element legacy methods.
Namespace
Drupal\KernelTests\Core\Render\ElementCode
public function testGetSeveritiesDeprecation() : void {
$this->expectDeprecation('Calling Drupal\\Core\\Render\\Element\\StatusReport::getSeverities() is deprecated in drupal:11.2.0 and is removed from in drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3410939');
$severities = StatusReport::getSeverities();
$this->assertIsArray($severities);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.