function 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 modules/
simpletest/ drupal_web_test_case.php - Run all tests in this class.
File
-
modules/
simpletest/ drupal_web_test_case.php, line 281
Class
- DrupalTestCase
- Base class for Drupal tests.
Code
public static function deleteAssert($message_id) {
return (bool) self::getDatabaseConnection()->delete('simpletest')
->condition('message_id', $message_id)
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.