protected function DrupalTestCase::assertFalse

7.x drupal_web_test_case.php protected DrupalTestCase::assertFalse($value, $message = '', $group = 'Other')

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.

208 calls to DrupalTestCase::assertFalse()
ActionsConfigurationTestCase::testActionConfiguration in drupal/modules/simpletest/tests/actions.test
Test the configuration of advanced actions through the administration interface.
AggregatorRenderingTestCase::testBlockLinks in drupal/modules/aggregator/aggregator.test
Adds a feed block to the page and checks its links.
AJAXFrameworkTestCase::testLazyLoad in drupal/modules/simpletest/tests/ajax.test
Test that new JavaScript and CSS files added during an AJAX request are returned.
BasicMinimalUpdatePath::testBasicMinimalUpdate in drupal/modules/simpletest/tests/upgrade/upgrade.test
Tests a successful point release update.
BasicStandardUpdatePath::testBasicStandardUpdate in drupal/modules/simpletest/tests/upgrade/upgrade.test
Tests a successful point release update.

... See full list

File

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

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);
}