1 backdrop_web_test_case.php protected BackdropTestCase::assertNotNull($value, $message = '', $group = 'Other')

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.:

File

core/modules/simpletest/backdrop_web_test_case.php, line 410

Class

BackdropTestCase
Base class for Backdrop 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);
}