public static function DrupalTestCase::deleteAssert in SimpleTest 7.2
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalTestCase::deleteAssert()
Delete an assertion record by message ID.
Parameters
$message_id: Message ID of the assertion to delete.
Return value
TRUE if the assertion was deleted, FALSE otherwise.
See also
DrupalTestCase::insertAssert()
1 call to DrupalTestCase::deleteAssert()
- DrupalTestCase::run in ./
drupal_web_test_case.php - Run all tests in this class.
File
- ./
drupal_web_test_case.php, line 204 - Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
public static function deleteAssert($message_id) {
return (bool) db_delete('simpletest')
->condition('message_id', $message_id)
->execute();
}