3 namespace Doctrine\Tests\DBAL\Platforms;
5 use Doctrine\Tests\DbalTestCase;
10 class SQLAzurePlatformTest extends DbalTestCase
14 public function setUp()
16 $this->platform = new \Doctrine\DBAL\Platforms\SQLAzurePlatform();
19 public function testCreateFederatedOnTable()
21 $table = new \Doctrine\DBAL\Schema\Table("tbl");
22 $table->addColumn("id", "integer");
23 $table->addOption('azure.federatedOnDistributionName', 'TblId');
24 $table->addOption('azure.federatedOnColumnName', 'id');
26 $this->assertEquals(array('CREATE TABLE tbl (id INT NOT NULL) FEDERATED ON (TblId = id)'), $this->platform->getCreateTableSQL($table));