protected function 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.

45 calls to DrupalTestCase::fail()
BatchPercentagesUnitTestCase::testBatchPercentages in drupal/modules/simpletest/tests/batch.test
Test the _batch_api_percentage() function.
BlockCacheTestCase::setCacheMode in drupal/modules/block/block.test
Private helper method to set the test block's cache mode.
DatabaseEmptyStatementTestCase::testEmptyIteration in drupal/modules/simpletest/tests/database_test.test
Test that the empty result set iterates safely.
DatabaseInsertDefaultsTestCase::testDefaultEmptyInsert in drupal/modules/simpletest/tests/database_test.test
Test that no action will be preformed if no fields are specified.
DatabaseInvalidDataTestCase::testInsertDuplicateData in drupal/modules/simpletest/tests/database_test.test
Traditional SQL database systems abort inserts when invalid data is encountered.

... See full list

File

drupal/modules/simpletest/drupal_web_test_case.php, line 431

Class

DrupalTestCase
Base class for Drupal tests.

Code

protected function fail($message = NULL, $group = 'Other') {
  return $this
    ->assert(FALSE, $message, $group);
}