public function PhpUnitBridgeTest::testDeprecatedClass in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testDeprecatedClass()
- 8 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedClass()
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedClass()
@expectedDeprecation Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass is deprecated.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Test/ PhpUnitBridgeTest.php, line 21
Class
- PhpUnitBridgeTest
- Test how kernel tests interact with deprecation errors.
Namespace
Drupal\KernelTests\Core\TestCode
public function testDeprecatedClass() {
$deprecated = new FixtureDeprecatedClass();
$this
->assertEquals('test', $deprecated
->testFunction());
}