public function AssertLegacyTraitTest::testPass in Drupal 9
@covers ::pass
File
- core/
tests/ Drupal/ Tests/ Core/ Assert/ AssertLegacyTraitTest.php, line 273
Class
- AssertLegacyTraitTest
- @coversDefaultClass \Drupal\FunctionalTests\AssertLegacyTrait @group Assert @group legacy
Namespace
Drupal\Tests\Core\AssertCode
public function testPass() {
$this
->expectDeprecation('AssertLegacyTrait::pass() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. PHPUnit interrupts a test as soon as a test assertion fails, so there is usually no need to call this method. If a test\'s logic relies on this method, refactor the test. See https://www.drupal.org/node/3129738');
$this
->pass('Passed.');
}