Search for assertTrue

  1. Search 7.x for assertTrue
  2. Search 9.5.x for assertTrue
  3. Search 10.3.x for assertTrue
  4. Search 11.x for assertTrue
  5. Other projects
Title Object type File name Summary
KernelAssertLegacyTraitTest::testAssertTrue function core/tests/Drupal/Tests/Core/Assert/KernelAssertLegacyTraitTest.php @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
TestBase::assertTrue function core/modules/simpletest/src/TestBase.php Check to see if a value is not false.
TestBaseTest::providerAssertTrue function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Data provider for assertTrue().
TestBaseTest::testAssertTrue function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertTrue
@dataProvider providerAssertTrue
TestCompatibilityTrait::assertTrue function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php @todo deprecate this method override in
https://www.drupal.org/project/drupal/issues/2742585
TestCompatibilityTrait::assertTrue function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php @todo deprecate this method override in
https://www.drupal.org/project/drupal/issues/2742585

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