You are here

protected function DrupalTestCase::fail in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.2 drupal_web_test_case.php \DrupalTestCase::fail()
  2. 7 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.

7 calls to DrupalTestCase::fail()
DrupalWebTestCase::assertNoDuplicateIds in ./drupal_web_test_case.php
Asserts that each HTML ID is used for just a single element.
DrupalWebTestCase::checkPermissions in ./drupal_web_test_case.php
Check to make sure that the array of permissions are valid.
DrupalWebTestCase::drupalPost in ./drupal_web_test_case.php
Execute a POST request on a Drupal page. It will be done as usual POST request with SimpleBrowser.
DrupalWebTestCase::parse in ./drupal_web_test_case.php
Parse content returned from curlExec using DOM and SimpleXML.
SimpleTestFunctionalTest::asText in ./simpletest.test
Extract the text contained by the element.

... See full list

File

./drupal_web_test_case.php, line 397

Class

DrupalTestCase
Base class for Drupal tests.

Code

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