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.
204 calls to DrupalTestCase::assertFalse()
- ActionsConfigurationTestCase::testActionConfiguration in drupal-7.x/
modules/ simpletest/ tests/ actions.test - Test the configuration of advanced actions through the administration interface.
- AggregatorRenderingTestCase::testBlockLinks in drupal-7.x/
modules/ aggregator/ aggregator.test - Adds a feed block to the page and checks its links.
- AJAXFrameworkTestCase::testLazyLoad in drupal-7.x/
modules/ simpletest/ tests/ ajax.test - Test that new JavaScript and CSS files added during an AJAX request are returned.
- BlockHashTestCase::doRehash in drupal-7.x/
modules/ block/ block.test - Performs a block rehash and checks several related assertions.
- BlockTestCase::testCustomBlock in drupal-7.x/
modules/ block/ block.test - Test creating custom block, moving it to a specific region and then deleting it.
File
- drupal-7.x/
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);
}