protected function DrupalTestCase::fail in SimpleTest 7
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalTestCase::fail()
- 7.2 drupal_web_test_case.php \DrupalTestCase::fail()
Fire an assertion that is always negative.
Parameters
$message: The message to display along with the assertion.
$group: The type of assertion - examples are "Browser", "PHP".
Return value
FALSE.
20 calls to DrupalTestCase::fail()
- BatchAPIPercentagesTestCase::testBatchAPIPercentages in tests/
batch.test - Test the _batch_api_percentage() function with the data stored in the testCases class variable.
- DatabaseExtraTypesTestCase::testDateField in tests/
database_test.test - Test the date data type.
- DatabaseExtraTypesTestCase::testTimeField in tests/
database_test.test - Test the time data type.
- DatabaseInsertDefaultsTestCase::testDefaultEmptyInsert in tests/
database_test.test - Test that no action will be preformed if no fields are specified.
- DatabaseInvalidDataTestCase::testInsertDuplicateData in tests/
database_test.test - Traditional SQL database systems abort inserts when invalid data is encountered.
File
- ./
drupal_web_test_case.php, line 362
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
protected function fail($message = NULL, $group = 'Other') {
return $this
->assert(FALSE, $message, $group);
}