Skip to content

Commit 70d92b0

Browse files
committed
feat:database:add test table or view not found
1 parent a734c22 commit 70d92b0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎tests/InsertTest.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ public function test(): void
1616
])->lastInsertId();
1717
$this->assertGreaterThan(0, (int)$id);
1818

19+
try {
20+
$db->insert('users_11111', [
21+
'name' => 'foo1',
22+
'balance' => 1,
23+
])->lastInsertId();
24+
} catch (\Throwable $ex) {
25+
$this->assertContains('Base table or view not found', $ex->getMessage());
26+
}
27+
1928
$data = [
2029
[
2130
'name' => 'foo2',

0 commit comments

Comments
 (0)