class LegacyStatusReportTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Render/Element/LegacyStatusReportTest.php \Drupal\KernelTests\Core\Render\Element\LegacyStatusReportTest
Tests the status report element legacy methods.
Attributes
#[Group('Render')]
#[IgnoreDeprecations]
#[RunTestsInSeparateProcesses]
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\Tests\DrupalTestCaseTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\PhpUnitCompatibilityTrait, \Prophecy\PhpUnit\ProphecyTrait, \Drupal\TestTools\Extension\DeprecationBridge\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Render\Element\LegacyStatusReportTest extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of LegacyStatusReportTest
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ LegacyStatusReportTest.php, line 16
Namespace
Drupal\KernelTests\Core\Render\ElementView source
class LegacyStatusReportTest extends KernelTestBase {
/**
* Tests the getSeverities() method deprecation.
*/
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.