protected static function NodeCreationTest::getWatchdogIdsForFailedExplicitRollback in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/NodeCreationTest.php \Drupal\node\Tests\NodeCreationTest::getWatchdogIdsForFailedExplicitRollback()
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 NodeCreationTest::getWatchdogIdsForFailedExplicitRollback()
- NodeCreationTest::testFailedPageCreation in core/
modules/ node/ src/ Tests/ NodeCreationTest.php - Verifies that a transaction rolls back the failed creation.
File
- core/
modules/ node/ src/ Tests/ NodeCreationTest.php, line 220 - Contains \Drupal\node\Tests\NodeCreationTest.
Class
- NodeCreationTest
- Create a node and test saving it.
Namespace
Drupal\node\TestsCode
protected static function getWatchdogIdsForFailedExplicitRollback() {
return db_query("SELECT wid FROM {watchdog} WHERE message LIKE 'Explicit rollback failed%'")
->fetchAll();
}