function PhpUnitBridgeTest::testErrorOnSiteUnderTest

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php \Drupal\FunctionalTests\Core\Test\PhpUnitBridgeTest::testErrorOnSiteUnderTest()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php \Drupal\FunctionalTests\Core\Test\PhpUnitBridgeTest::testErrorOnSiteUnderTest()
  3. 11.x 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 39

Class

PhpUnitBridgeTest
Tests Drupal's integration with Symfony PHPUnit Bridge.

Namespace

Drupal\FunctionalTests\Core\Test

Code

public function testErrorOnSiteUnderTest() : void {
    $this->expectDeprecation('This is the deprecation message for deprecation_test_function().');
    $this->drupalGet(Url::fromRoute('deprecation_test.route'));
}

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