function KernelTestBaseTest::testAssert
Tests the deprecation of AssertLegacyTrait::assert.
@group legacy
File
-
core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 348
Class
- KernelTestBaseTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function testAssert() {
$this->expectDeprecation('AssertLegacyTrait::assert() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertTrue() instead. See https://www.drupal.org/node/3129738');
$this->assert(TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.