Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / dbal / tests / Doctrine / Tests / DBAL / Platforms / SQLAzurePlatformTest.php
diff --git a/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Platforms/SQLAzurePlatformTest.php b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Platforms/SQLAzurePlatformTest.php
new file mode 100644 (file)
index 0000000..f66a0f8
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Doctrine\Tests\DBAL\Platforms;
+
+use Doctrine\Tests\DbalTestCase;
+
+/**
+ * @group DBAL-222
+ */
+class SQLAzurePlatformTest extends DbalTestCase
+{
+    private $platform;
+
+    public function setUp()
+    {
+        $this->platform = new \Doctrine\DBAL\Platforms\SQLAzurePlatform();
+    }
+
+    public function testCreateFederatedOnTable()
+    {
+        $table = new \Doctrine\DBAL\Schema\Table("tbl");
+        $table->addColumn("id", "integer");
+        $table->addOption('azure.federatedOnDistributionName', 'TblId');
+        $table->addOption('azure.federatedOnColumnName', 'id');
+
+        $this->assertEquals(array('CREATE TABLE tbl (id INT NOT NULL) FEDERATED ON (TblId = id)'), $this->platform->getCreateTableSQL($table));
+    }
+}
+