You are here

public static function TestBase::deleteAssert in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/TestBase.php \Drupal\simpletest\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()

4 calls to TestBase::deleteAssert()
ErrorHandlerTest::testErrorHandler in core/modules/system/src/Tests/System/ErrorHandlerTest.php
Test the error handler.
TestBase::run in core/modules/simpletest/src/TestBase.php
Run all tests in this class.
UncaughtExceptionTest::testMissingDependencyCustomErrorHandler in core/modules/system/src/Tests/System/UncaughtExceptionTest.php
Tests a missing dependency on a service with a custom error handler.
UpdatePathWithBrokenRoutingTest::testWithBrokenRouting in core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingTest.php
Tests running update.php with some form of broken routing.

File

core/modules/simpletest/src/TestBase.php, line 500
Contains \Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

public static function deleteAssert($message_id) {

  // We can't use storeAssertion() because this method is static.
  return (bool) self::getDatabaseConnection()
    ->delete('simpletest')
    ->condition('message_id', $message_id)
    ->execute();
}