function PhpUnitWarningsTest::testAddWarning
Same name in other branches
- 9 core/tests/Drupal/Tests/PhpUnitWarningsTest.php \Drupal\Tests\PhpUnitWarningsTest::testAddWarning()
- 11.x core/tests/Drupal/Tests/PhpUnitWarningsTest.php \Drupal\Tests\PhpUnitWarningsTest::testAddWarning()
Tests that selected PHPUnit warning is converted to deprecation.
File
-
core/
tests/ Drupal/ Tests/ PhpUnitWarningsTest.php, line 16
Class
- PhpUnitWarningsTest
- @coversDefaultClass \Drupal\Tests\Traits\PhpUnitWarnings @group legacy
Namespace
Drupal\TestsCode
public function testAddWarning() : void {
$this->expectDeprecation('Test warning for \\Drupal\\Tests\\PhpUnitWarningsTest::testAddWarning()');
$this->addWarning('Test warning for \\Drupal\\Tests\\PhpUnitWarningsTest::testAddWarning()');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.