protected function DrupalTestCase::assertNotNull in SimpleTest 6.2
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::assertNotNull()
- 6 drupal_test_case.php \DrupalTestCase::assertNotNull()
- 7.2 drupal_web_test_case.php \DrupalTestCase::assertNotNull()
- 7 drupal_web_test_case.php \DrupalTestCase::assertNotNull()
Check to see if a value is not NULL.
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.
2 calls to DrupalTestCase::assertNotNull()
- BlockTestCase::testBlock in tests/
block.test - Test configuring and moving a module-define block to specific regions.
- BlockTestCase::testBox in tests/
block.test - Test creating custom block (i.e. box), moving it to a specific region and then deleting it.
File
- ./
drupal_web_test_case.php, line 297
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
protected function assertNotNull($value, $message = '', $group = 'Other') {
return $this
->assert(isset($value), $message ? $message : t('Value @value is not NULL.', array(
'@value' => var_export($value, TRUE),
)), $group);
}