diff --git a/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php b/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php index b04db48eb0..27869eb47a 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php @@ -263,10 +263,9 @@ public function testTransactionWithDdlStatement() { try { // Rollback the outer transaction. $transaction->rollBack(); - // The PHP 7 MySQL driver does not trigger an exception when calling - // rollback and there is no active transaction. + // @see \Drupal\Core\Database\Driver\mysql\Connection::rollBack() if (PHP_VERSION_ID >= 80000) { - $this->fail('Rolling back a transaction containing DDL should fail.'); + $this->fail('Rolling back a transaction containing DDL should produce a warning.'); } } catch (Warning $warning) {