function PhpUnitBridgeTest::testDeprecatedFunction

Same name in this branch
  1. 10 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
  2. 9 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
  3. 8.9.x core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
  4. 8.9.x core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
  5. 11.x core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php \Drupal\KernelTests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()
  6. 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testDeprecatedFunction()

File

core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php, line 27

Class

PhpUnitBridgeTest
Test how unit tests interact with deprecation errors.

Namespace

Drupal\Tests\Core\Test

Code

public function testDeprecatedFunction() : void {
    $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());
}

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