You are here

protected function DrupalTestCase::pass in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.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.

5 calls to DrupalTestCase::pass()
DrupalWebTestCase::parse in ./drupal_web_test_case.php
Parse content returned from curlExec using DOM and SimpleXML.
DrupalWebTestCase::setUp in ./drupal_web_test_case.php
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
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 383

Class

DrupalTestCase
Base class for Drupal tests.

Code

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