You are here

protected static function SupportTicketCreationTest::getWatchdogIdsForFailedExplicitRollback in Support Ticketing System 8

Gets the log records with the explicit rollback failed exception message.

Return value

\Drupal\Core\Database\StatementInterface A prepared statement object (already executed), which contains the log records with the explicit rollback failed exception message.

1 call to SupportTicketCreationTest::getWatchdogIdsForFailedExplicitRollback()
SupportTicketCreationTest::testFailedTicketCreation in modules/support_ticket/src/Tests/SupportTicketCreationTest.php
Verifies that a transaction rolls back the failed creation.

File

modules/support_ticket/src/Tests/SupportTicketCreationTest.php, line 228
Contains \Drupal\support_ticket\Tests\SupportTicketCreationTest.

Class

SupportTicketCreationTest
Create a support ticket and test saving it.

Namespace

Drupal\support_ticket\Tests

Code

protected static function getWatchdogIdsForFailedExplicitRollback() {
  return db_query("SELECT wid FROM {watchdog} WHERE message LIKE 'Explicit rollback failed%'")
    ->fetchAll();
}