public function SkippedDeprecationTest::testSkippingDeprecationsAgain in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/SkippedDeprecationTest.php \Drupal\Tests\SkippedDeprecationTest::testSkippingDeprecationsAgain()
Tests skipping deprecations in unit tests multiple times.
See also
\Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()
File
- core/
tests/ Drupal/ Tests/ SkippedDeprecationTest.php, line 25
Class
- SkippedDeprecationTest
- @group Test
Namespace
Drupal\TestsCode
public function testSkippingDeprecationsAgain() {
@trigger_error('\\Drupal\\Tests\\SkippedDeprecationTest deprecation', E_USER_DEPRECATED);
$this
->addToAssertionCount(1);
}