You are here

protected function DrupalTestCase::pass in SimpleTest 7

Same name and namespace in other branches
  1. 6.2 drupal_web_test_case.php \DrupalTestCase::pass()
  2. 7.2 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.

14 calls to DrupalTestCase::pass()
BatchAPIPercentagesTestCase::testBatchAPIPercentages in tests/batch.test
Test the _batch_api_percentage() function with the data stored in the testCases class variable.
DatabaseInsertDefaultsTestCase::testDefaultEmptyInsert in tests/database_test.test
Test that no action will be preformed if no fields are specified.
DatabaseInvalidDataTestCase::testInsertDuplicateData in tests/database_test.test
Traditional SQL database systems abort inserts when invalid data is encountered.
DatabaseMergeTestCase::testInvalidMerge in tests/database_test.test
Test that an invalid merge query throws an exception like it is supposed to.
DatabaseTransactionTestCase::testTransactionsNotSupported in tests/database_test.test
Test that a database that doesn't support transactions fails correctly.

... See full list

File

./drupal_web_test_case.php, line 348

Class

DrupalTestCase
Base class for Drupal tests.

Code

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