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 7f9359a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Phinx/Db/Adapter/SqlServerAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ public function testCreateTableWithNoPrimaryKey()
$this->assertFalse($this->adapter->hasColumn('atable', 'id'));
}

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

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

0 comments on commit 7f9359a

Please sign in to comment.