You are here

public static function DrupalTestCase::deleteAssert in Drupal 7

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 256

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