You are here

protected function DrupalTestCase::pass in Drupal 7

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.

45 calls to DrupalTestCase::pass()
BatchPercentagesUnitTestCase::testBatchPercentages in modules/simpletest/tests/batch.test
Test the _batch_api_percentage() function.
BookTestCase::checkBookNode in modules/book/book.test
Checks the outline of sub-pages; previous, up, and next.
CommentHelperCase::setCommentSettings in modules/comment/comment.test
Set comment setting for article content type.
ConnectionUnitTest::setUp in modules/simpletest/tests/database_test.test
Sets up unit test environment.
DatabaseEmptyStatementTestCase::testEmptyIteration in modules/simpletest/tests/database_test.test
Test that the empty result set iterates safely.

... See full list

File

modules/simpletest/drupal_web_test_case.php, line 431

Class

DrupalTestCase
Base class for Drupal tests.

Code

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