Search for assert

  1. Search 7.x for assert
  2. Search 9.5.x for assert
  3. Search 10.3.x for assert
  4. Search 11.x for assert
  5. Other projects
Title Object type File name Summary
TermAccessTest::assertTermAccess function core/modules/taxonomy/tests/src/Functional/TermAccessTest.php Checks access on taxonomy term.
TermParentsTest::assertParentOption function core/modules/taxonomy/tests/src/Functional/TermParentsTest.php Asserts that an option in the parent form element of terms exists.
TermParentsTest::assertParentsUnchanged function core/modules/taxonomy/tests/src/Functional/TermParentsTest.php Asserts that the parents of the term have not changed after saving.
TestBase::$assertions property core/modules/simpletest/src/TestBase.php Assertions thrown in that test case.
TestBase::assert function core/modules/simpletest/src/TestBase.php Internal helper: stores the assert.
TestBase::assertEqual function core/modules/simpletest/src/TestBase.php Check to see if two values are equal.
TestBase::assertErrorLogged function core/modules/simpletest/src/TestBase.php Asserts that a specific error has been logged to the PHP error log.
TestBase::assertFalse function core/modules/simpletest/src/TestBase.php Check to see if a value is false.
TestBase::assertIdentical function core/modules/simpletest/src/TestBase.php Check to see if two values are identical.
TestBase::assertIdenticalObject function core/modules/simpletest/src/TestBase.php Checks to see if two objects are identical.
TestBase::assertNoErrorsLogged function core/modules/simpletest/src/TestBase.php Asserts that no errors have been logged to the PHP error.log thus far.
TestBase::assertNotEqual function core/modules/simpletest/src/TestBase.php Check to see if two values are not equal.
TestBase::assertNotIdentical function core/modules/simpletest/src/TestBase.php Check to see if two values are not identical.
TestBase::assertNotNull function core/modules/simpletest/src/TestBase.php Check to see if a value is not NULL.
TestBase::assertNull function core/modules/simpletest/src/TestBase.php Check to see if a value is NULL.
TestBase::assertTrue function core/modules/simpletest/src/TestBase.php Check to see if a value is not false.
TestBase::deleteAssert function core/modules/simpletest/src/TestBase.php Delete an assertion record by message ID.
TestBase::getAssertionCall function core/modules/simpletest/src/TestBase.php Cycles through backtrace until the first non-assertion method is found.
TestBase::insertAssert function core/modules/simpletest/src/TestBase.php Store an assertion from outside the testing context.
TestBase::storeAssertion function core/modules/simpletest/src/TestBase.php Helper method to store an assertion record in the configured database.
TestBaseTest::getTestBaseForAssertionTests function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Helper method for constructing a mock TestBase object.
TestBaseTest::providerAssert function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Data provider for testAssert().
TestBaseTest::providerAssertIdenticalObject function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Data provider for testAssertIdenticalObject().
TestBaseTest::providerAssertNull function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Data provider for assertNull().
TestBaseTest::providerAssertTrue function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Data provider for assertTrue().
TestBaseTest::providerEqualityAssertions function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Data provider for tests of equality assertions.
TestBaseTest::testAssert function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assert
@dataProvider providerAssert
TestBaseTest::testAssertEqual function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertEqual
@dataProvider providerEqualityAssertions
TestBaseTest::testAssertFalse function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertFalse
@dataProvider providerAssertTrue
TestBaseTest::testAssertIdentical function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertIdentical
@dataProvider providerEqualityAssertions
TestBaseTest::testAssertIdenticalObject function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertIdenticalObject
@dataProvider providerAssertIdenticalObject
TestBaseTest::testAssertNotEqual function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertNotEqual
@dataProvider providerEqualityAssertions
TestBaseTest::testAssertNotIdentical function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertNotIdentical
@dataProvider providerEqualityAssertions
TestBaseTest::testAssertNotNull function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertNotNull
@dataProvider providerAssertNull
TestBaseTest::testAssertNull function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertNull
@dataProvider providerAssertNull
TestBaseTest::testAssertTrue function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::assertTrue
@dataProvider providerAssertTrue
TestCompatibilityTrait::assertEqualsCanonicalizing function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Forward compatibility for assertEqualsCanonicalizing.
TestCompatibilityTrait::assertEqualsCanonicalizing function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Forward compatibility for assertEqualsCanonicalizing.
TestCompatibilityTrait::assertFalse function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php @todo deprecate this method override in
https://www.drupal.org/project/drupal/issues/2742585
TestCompatibilityTrait::assertFalse function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php @todo deprecate this method override in
https://www.drupal.org/project/drupal/issues/2742585
TestCompatibilityTrait::assertIsArray function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsArray().
TestCompatibilityTrait::assertIsArray function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsArray().
TestCompatibilityTrait::assertIsBool function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsBool().
TestCompatibilityTrait::assertIsBool function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsBool().
TestCompatibilityTrait::assertIsCallable function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsCallable().
TestCompatibilityTrait::assertIsCallable function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsCallable().
TestCompatibilityTrait::assertIsFloat function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsFloat().
TestCompatibilityTrait::assertIsFloat function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsFloat().
TestCompatibilityTrait::assertIsInt function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsInt().
TestCompatibilityTrait::assertIsInt function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsInt().

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