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

File

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

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