DrupalTestCase::pass

  1. drupal
    1. 8
    2. 7
Versions
7 protected DrupalTestCase::pass($message = NULL, $group = 'Other')

Fire an assertion that is always positive.

Parameters

$message The message to display along with the assertion.

$group The type of assertion - examples are "Browser", "PHP".

Return value

TRUE.

Code

modules/simpletest/drupal_web_test_case.php, line 373

<?php
protected function pass($message = NULL, $group = 'Other') {
  return $this->assert(TRUE, $message, $group);
}
?>