function DrupalTestCase::assertNoErrors in SimpleTest 5
Same name and namespace in other branches
- 6 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 639
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"));
}