Skip to content

Commit

Permalink
Fixed hasSchema tests & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
evil1 committed Jan 5, 2025
1 parent c19ffde commit 3203b8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 2.0.0 under development

- Enh #913: Add methods `SchemaInterface::hasSchema()`, `SchemaInterface::hasTable()`, `SchemaInterface::hasView()` (@evil1)
- New #913: Add methods `SchemaInterface::hasSchema()`, `SchemaInterface::hasTable()`, `SchemaInterface::hasView()` (@evil1)
- Enh #820: Support `Traversable` values for `AbstractDMLQueryBuilder::batchInsert()` method with empty columns (@Tigrov)
- Enh #815: Refactor `Query::column()` method (@Tigrov)
- Enh #816: Allow scalar values for `$columns` parameter of `Query::select()` and `Query::addSelect()` methods (@Tigrov)
Expand Down
9 changes: 0 additions & 9 deletions tests/Common/CommonSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,6 @@ public function testHasTable(): void
$this->assertTrue($schema->hasTable('category', '', true));
$this->assertFalse($schema->hasTable('no_such_table', '', true));

if ($db->getDriverName() !== 'sqlite') {
$this->assertFalse($schema->hasTable('customer', 'no_such_schema', true));
$this->assertFalse($schema->hasTable('category', 'no_such_schema', true));
}

$db->close();
}

Expand Down Expand Up @@ -516,10 +511,6 @@ public function testHasView(): void
$this->assertTrue($schema->hasView('animal_view', '', true));
$this->assertFalse($schema->hasView('no_such_view', '', true));

if ($db->getDriverName() !== 'sqlite') {
$this->assertFalse($schema->hasView('animal_view', 'no_such_schema', true));
}

$db->close();
}

Expand Down

0 comments on commit 3203b8b

Please sign in to comment.