public function KernelAssertLegacyTraitTest::testAssertTrue in Drupal 8
@expectedDeprecation Support for asserting against non-boolean values in ::assertTrue is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertNotEmpty(). See https://www.drupal.org/node/3082086
File
- core/
tests/ Drupal/ Tests/ Core/ Assert/ KernelAssertLegacyTraitTest.php, line 20
Class
- KernelAssertLegacyTraitTest
- @coversDefaultClass \Drupal\KernelTests\AssertLegacyTrait @group Assert @group legacy
Namespace
Drupal\Tests\Core\AssertCode
public function testAssertTrue() {
$this
->assertTrue(1);
}