namespace Drupal\Tests\Traits

Same name in other branches
  1. 11.x Drupal\Tests\Traits
  2. 10 Drupal\Tests\Traits
  3. 8.9.x Drupal\Tests\Traits
Object name File name Summary
ExpectDeprecationTrait core/tests/Drupal/Tests/Traits/ExpectDeprecationTrait.php Adds the ability to dynamically set expected deprecation messages in tests.
PhpUnitWarnings core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php Converts deprecation warnings added by PHPUnit to silenced deprecations.

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