diff --git a/core/modules/block_content/src/Tests/BlockContentCreationTest.php b/core/modules/block_content/src/Tests/BlockContentCreationTest.php index ac9e824..153cdaa 100644 --- a/core/modules/block_content/src/Tests/BlockContentCreationTest.php +++ b/core/modules/block_content/src/Tests/BlockContentCreationTest.php @@ -213,10 +213,6 @@ public function testFailedBlockCreation() { ->execute() ->fetchField(); $this->assertTrue($id, 'Transactions not supported, and block found in database.'); - - // Check that the failed rollback was logged. - $records = db_query("SELECT wid FROM {watchdog} WHERE message LIKE 'Explicit rollback failed%'")->fetchAll(); - $this->assertTrue(count($records) > 0, 'Transactions not supported, and rollback error logged to watchdog.'); } } diff --git a/core/modules/node/tests/src/Functional/NodeCreationTest.php b/core/modules/node/tests/src/Functional/NodeCreationTest.php index 4d24901..f485b3d 100644 --- a/core/modules/node/tests/src/Functional/NodeCreationTest.php +++ b/core/modules/node/tests/src/Functional/NodeCreationTest.php @@ -112,10 +112,6 @@ public function testFailedPageCreation() { // Check that the node exists in the database. $node = $this->drupalGetNodeByTitle($edit['title']); $this->assertTrue($node, 'Transactions not supported, and node found in database.'); - - // Check that the failed rollback was logged. - $records = static::getWatchdogIdsForFailedExplicitRollback(); - $this->assertTrue(count($records) > 0, 'Transactions not supported, and rollback error logged to watchdog.'); } // Check that the rollback error was logged. @@ -220,15 +216,4 @@ protected static function getWatchdogIdsForTestExceptionRollback() { return $matches; } - /** - * Gets the log records with the explicit rollback failed exception message. - * - * @return \Drupal\Core\Database\StatementInterface - * A prepared statement object (already executed), which contains the log - * records with the explicit rollback failed exception message. - */ - protected static function getWatchdogIdsForFailedExplicitRollback() { - return db_query("SELECT wid FROM {watchdog} WHERE message LIKE 'Explicit rollback failed%'")->fetchAll(); - } - }