PhpUnitBridgeTest.php in Drupal 8
Same filename in this branch
Same filename and directory in other branches
Namespace
Drupal\FunctionalTests\Core\TestFile
core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.phpView 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
Name![]() |
Description |
---|---|
PhpUnitBridgeTest | Tests Drupal's integration with Symfony PHPUnit Bridge. |