protected function DrupalTestCase::assertFalse in Drupal 7
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.
234 calls to DrupalTestCase::assertFalse()
- ActionsConfigurationTestCase::testActionConfiguration in modules/
simpletest/ tests/ actions.test - Test the configuration of advanced actions through the administration interface.
- AggregatorRenderingTestCase::testBlockLinks in modules/
aggregator/ aggregator.test - Adds a feed block to the page and checks its links.
- AJAXFrameworkTestCase::testLazyLoad in modules/
simpletest/ tests/ ajax.test - Test that new JavaScript and CSS files added during an AJAX request are returned.
- BasicMinimalUpdatePath::testBasicMinimalUpdate in modules/
simpletest/ tests/ upgrade/ upgrade.test - Tests a successful point release update.
- BasicStandardUpdatePath::testBasicStandardUpdate in modules/
simpletest/ tests/ upgrade/ upgrade.test - Tests a successful point release update.
File
- modules/
simpletest/ drupal_web_test_case.php, line 313
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);
}