Skip to content

Commit 569b636

Browse files
authored
Merge pull request #6968 from michalsn/fix/TransactionTest
fix: transaction exception test
2 parents bb2e614 + 743d30a commit 569b636

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/system/Database/Live/TransactionTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ protected function enableDBDebug(): void
5757

5858
public function testTransStartDBDebugTrue()
5959
{
60-
$builder = $this->db->table('job');
60+
$this->enableDBDebug();
61+
62+
$builder = $this->db->transException(true)->table('job');
6163
$e = null;
6264

6365
try {

0 commit comments

Comments
 (0)