public static function TestBase::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

Drupal\simpletest\TestBase::insertAssert()

1 call to TestBase::deleteAssert()
TestBase::run in drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
Run all tests in this class.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php, line 279
Definition of Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

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