Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / dbal / tests / Doctrine / Tests / DBAL / Platforms / SQLAzurePlatformTest.php
1 <?php
2
3 namespace Doctrine\Tests\DBAL\Platforms;
4
5 use Doctrine\Tests\DbalTestCase;
6
7 /**
8  * @group DBAL-222
9  */
10 class SQLAzurePlatformTest extends DbalTestCase
11 {
12     private $platform;
13
14     public function setUp()
15     {
16         $this->platform = new \Doctrine\DBAL\Platforms\SQLAzurePlatform();
17     }
18
19     public function testCreateFederatedOnTable()
20     {
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');
25
26         $this->assertEquals(array('CREATE TABLE tbl (id INT NOT NULL) FEDERATED ON (TblId = id)'), $this->platform->getCreateTableSQL($table));
27     }
28 }
29