You are here

public function SkippedDeprecationTest::testSkippingDeprecations in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/SkippedDeprecationTest.php \Drupal\Tests\SkippedDeprecationTest::testSkippingDeprecations()

Tests skipping deprecations in unit tests.

See also

\Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()

File

core/tests/Drupal/Tests/SkippedDeprecationTest.php, line 15

Class

SkippedDeprecationTest
@group Test

Namespace

Drupal\Tests

Code

public function testSkippingDeprecations() {
  @trigger_error('\\Drupal\\Tests\\SkippedDeprecationTest deprecation', E_USER_DEPRECATED);
  $this
    ->addToAssertionCount(1);
}