1.20.x backdrop_web_test_case.php public static BackdropTestCase::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

BackdropTestCase::insertAssert()

File

modules/simpletest/backdrop_web_test_case.php, line 330

Class

BackdropTestCase
Base class for Backdrop tests.

Code

public static function deleteAssert($message_id) {
  return (bool) self::getDatabaseConnection()
    ->delete('simpletest')
    ->condition('message_id', $message_id)
    ->execute();
}