Skip to content

Commit

Permalink
Fixed hasSchema tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evil1 committed Jan 5, 2025
1 parent 905efb0 commit 028baf8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Common/CommonSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ public function testHasTable(): void
$this->assertTrue($schema->hasTable('category'));
$this->assertFalse($schema->hasTable('no_such_table'));

$this->assertTrue($schema->hasTable('customer', '', true));
$this->assertTrue($schema->hasTable('category', '', true));
$this->assertFalse($schema->hasTable('no_such_table', '', true));

$db->close();
}

Expand Down Expand Up @@ -504,6 +508,9 @@ public function testHasView(): void
$this->assertTrue($schema->hasView('animal_view'));
$this->assertFalse($schema->hasView('no_such_view'));

$this->assertTrue($schema->hasView('animal_view', '', true));
$this->assertFalse($schema->hasView('no_such_view', '', true));

$db->close();
}

Expand Down

0 comments on commit 028baf8

Please sign in to comment.