Skip to content

Commit

Permalink
add sqlsrv test
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Sep 7, 2024
1 parent 6d767f8 commit 575d035
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Phinx/Db/Adapter/SqlServerAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ public function testCreateTableWithNoPrimaryKey()
$this->assertFalse($this->adapter->hasColumn('atable', 'id'));
}

public function testCreateFullyQualifiedTable()
{
(new Table('dbo.qualified_table', [], $this->adapter))->create();
$this->assertTrue($this->adapter->hasTable('dbo.qualified_table'));
$this->assertTrue($this->adapter->hasPrimaryKey('qualified_table', 'id'));
}

public function testCreateTableWithConflictingPrimaryKeys()
{
$options = [
Expand Down

0 comments on commit 575d035

Please sign in to comment.