function AssertHelperTraitTest::testTraitDeprecation

File

core/tests/Drupal/Tests/AssertHelperTraitTest.php, line 15

Class

AssertHelperTraitTest
@coversDefaultClass \Drupal\Tests\AssertHelperTrait @group simpletest @group Tests @group legacy

Namespace

Drupal\Tests

Code

public function testTraitDeprecation() : void {
    $this->expectDeprecation('Drupal\\Tests\\AssertHelperTrait is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3123638');
    require_once __DIR__ . '/../../fixtures/AssertHelperTestClass.php';
    $class = new AssertHelperTestClass();
}

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