public static function DrupalTestCase::deleteAssert

7.x drupal_web_test_case.php public static DrupalTestCase::deleteAssert($message_id)

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/modules/simpletest/drupal_web_test_case.php
Run all tests in this class.

File

drupal/modules/simpletest/drupal_web_test_case.php, line 223

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();
}