function ExpectDeprecationTest::testExpectDeprecation

@covers ::addExpectedDeprecationMessage

File

core/tests/Drupal/Tests/ExpectDeprecationTest.php, line 19

Class

ExpectDeprecationTest
@coversDefaultClass \Drupal\Tests\Traits\ExpectDeprecationTrait[[api-linebreak]]

Namespace

Drupal\Tests

Code

public function testExpectDeprecation() {
  $this->addExpectedDeprecationMessage('Test deprecation');
  @trigger_error('Test deprecation', E_USER_DEPRECATED);
}

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