You are here

protected function DrupalTestCase::pass in SimpleTest 7.2

Same name and namespace in other branches
  1. 6.2 drupal_web_test_case.php \DrupalTestCase::pass()
  2. 7 drupal_web_test_case.php \DrupalTestCase::pass()

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.

4 calls to DrupalTestCase::pass()
DrupalWebTestCase::parse in ./drupal_web_test_case.php
Parse content returned from curlExec using DOM and SimpleXML.
DrupalWebTestCase::tearDown in ./drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
SimpleTestFunctionalTest::assertNothing in ./simpletest.test
Assert nothing.
SimpleTestFunctionalTest::stubTest in ./simpletest.test
Test to be run and the results confirmed.

File

./drupal_web_test_case.php, line 378
Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.

Class

DrupalTestCase
Base class for Drupal tests.

Code

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