function DrupalTestCase::assertNoErrors in SimpleTest 6
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::assertNoErrors()
Confirms that no errors have occurred so far in the test method.
Parameters
string $message Message to display.: @return boolean True on pass @access public
File
- ./
drupal_test_case.php, line 763
Class
- DrupalTestCase
- Test case for typical Drupal tests. Extends WebTestCase for comfortable browser usage but also implements all UnitTestCase methods, I wish WebTestCase would do this.
Code
function assertNoErrors($message = "%s") {
$queue =& SimpleErrorQueue::instance();
return $this
->assertTrue($queue
->isEmpty(), sprintf($message, "Should be no errors"));
}