DrupalTestCase::deleteAssert

  1. drupal
    1. 8
    2. 7
Versions
7 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()

Code

modules/simpletest/drupal_web_test_case.php, line 199

<?php
public static function deleteAssert($message_id) {
  return (bool) db_delete('simpletest')
      ->condition('message_id', $message_id)
      ->execute();
}
?>