PhpUnitBridgeTest.php
Same filename in this branch
Same filename in other branches
- 9 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
- 9 core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
- 9 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
- 10 core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
- 10 core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
- 10 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
- 11.x core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
- 11.x core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
- 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
Namespace
Drupal\FunctionalTests\Core\TestFile
-
core/
tests/ Drupal/ FunctionalTests/ Core/ Test/ PhpUnitBridgeTest.php
View source
<?php
namespace Drupal\FunctionalTests\Core\Test;
use Drupal\Core\Url;
use Drupal\Tests\BrowserTestBase;
/**
* Tests Drupal's integration with Symfony PHPUnit Bridge.
*
* @group Test
* @group legacy
*/
class PhpUnitBridgeTest extends BrowserTestBase {
protected static $modules = [
'deprecation_test',
];
/**
* @expectedDeprecation This is the deprecation message for deprecation_test_function().
*/
public function testSilencedError() {
$this->assertEquals('known_return_value', deprecation_test_function());
}
/**
* @expectedDeprecation This is the deprecation message for deprecation_test_function().
*/
public function testErrorOnSiteUnderTest() {
$this->drupalGet(Url::fromRoute('deprecation_test.route'));
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
PhpUnitBridgeTest | Tests Drupal's integration with Symfony PHPUnit Bridge. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.