Skip to content

Commit 523d14e

Browse files
committed
test: add assertion
1 parent 821913c commit 523d14e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/system/Database/Live/TransactionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected function enableDBDebug(): void
5858
public function testTransStartDBDebugTrue()
5959
{
6060
$builder = $this->db->table('job');
61+
$e = null;
6162

6263
try {
6364
$this->db->transStart();
@@ -81,6 +82,7 @@ public function testTransStartDBDebugTrue()
8182
// Do nothing.
8283
}
8384

85+
$this->assertInstanceOf(DatabaseException::class, $e);
8486
$this->dontSeeInDatabase('job', ['name' => 'Grocery Sales']);
8587
}
8688

0 commit comments

Comments
 (0)