public function PhpUnitBridgeTest::testErrorOnSiteUnderTest in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php \Drupal\FunctionalTests\Core\Test\PhpUnitBridgeTest::testErrorOnSiteUnderTest()
Tests deprecation message from deprecated route.
File
- core/
tests/ Drupal/ FunctionalTests/ Core/ Test/ PhpUnitBridgeTest.php, line 34
Class
- PhpUnitBridgeTest
- Tests Drupal's integration with Symfony PHPUnit Bridge.
Namespace
Drupal\FunctionalTests\Core\TestCode
public function testErrorOnSiteUnderTest() {
$this
->expectDeprecation('This is the deprecation message for deprecation_test_function().');
$this
->drupalGet(Url::fromRoute('deprecation_test.route'));
}