function 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.
41 calls to DrupalTestCase::pass()
- BasicMinimalUpdatePath::testBasicMinimalUpdate in modules/
simpletest/ tests/ upgrade/ upgrade.test - Tests a successful point release update.
- BatchPercentagesUnitTestCase::testBatchPercentages in modules/
simpletest/ tests/ batch.test - Test the _batch_api_percentage() function.
- ConnectionUnitTest::setUp in modules/
simpletest/ tests/ database_test.test - DatabaseEmptyStatementTestCase::testEmptyIteration in modules/
simpletest/ tests/ database_test.test - Test that the empty result set iterates safely.
- DatabaseInsertDefaultsTestCase::testDefaultEmptyInsert in modules/
simpletest/ tests/ database_test.test - Test that no action will be preformed if no fields are specified.
File
-
modules/
simpletest/ drupal_web_test_case.php, line 456
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
protected function pass($message = NULL, $group = 'Other') {
return $this->assert(TRUE, $message, $group);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.