public function PhpUnitBridgeTest::testDeprecatedFunction in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
- 8 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
File
- core/
tests/ Drupal/ Tests/ Core/ Test/ PhpUnitBridgeTest.php, line 24
Class
- PhpUnitBridgeTest
- Test how unit tests interact with deprecation errors.
Namespace
Drupal\Tests\Core\TestCode
public function testDeprecatedFunction() {
$this
->markTestIncomplete('Modules are not loaded for unit tests, so deprecated_test_function() will not be available.');
$this
->assertEquals('known_return_value', \deprecation_test_function());
}