function AssertLegacyTraitTest::testPass

@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\Assert

Code

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.');
}

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