You are here

protected function DrupalTestCase::assertFalse in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.2 drupal_web_test_case.php \DrupalTestCase::assertFalse()
  2. 7 drupal_web_test_case.php \DrupalTestCase::assertFalse()

Check to see if a value is false (an empty string, 0, NULL, or FALSE).

Parameters

$value: The value on which the assertion is to be done.

$message: The message to display along with the assertion.

$group: The type of assertion - examples are "Browser", "PHP".

Return value

TRUE if the assertion succeeded, FALSE otherwise.

3 calls to DrupalTestCase::assertFalse()
DrupalWebTestCase::assertNoFieldByXPath in ./drupal_web_test_case.php
Asserts that a field does not exist in the current page by the given XPath.
DrupalWebTestCase::assertNoResponse in ./drupal_web_test_case.php
Asserts the page did not return the specified response code.
SimpleTestFunctionalTest::testInternalBrowser in ./simpletest.test
Test the internal browsers functionality.

File

./drupal_web_test_case.php, line 265

Class

DrupalTestCase
Base class for Drupal tests.

Code

protected function assertFalse($value, $message = '', $group = 'Other') {
  return $this
    ->assert(!$value, $message ? $message : t('Value @value is FALSE.', array(
    '@value' => var_export($value, TRUE),
  )), $group);
}