function PhpUnitBridgeTest::testDeprecatedFunction
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Test/ PhpUnitBridgeTest.php, line 24
Class
- PhpUnitBridgeTest
- Test how kernel tests interact with deprecation errors.
Namespace
Drupal\KernelTests\Core\TestCode
public function testDeprecatedFunction() {
$this->expectDeprecation('This is the deprecation message for deprecation_test_function().');
$this->assertEquals('known_return_value', \deprecation_test_function());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.