@@ 188-196 (lines=9) @@ | ||
185 | ||
186 | abstract public function getGenerateTableWithMultiColumnUniqueIndexSql(); |
|
187 | ||
188 | public function testGeneratesIndexCreationSql() |
|
189 | { |
|
190 | $indexDef = new \Doctrine\DBAL\Schema\Index('my_idx', array('user_name', 'last_login')); |
|
191 | ||
192 | self::assertEquals( |
|
193 | $this->getGenerateIndexSql(), |
|
194 | $this->_platform->getCreateIndexSQL($indexDef, 'mytable') |
|
195 | ); |
|
196 | } |
|
197 | ||
198 | abstract public function getGenerateIndexSql(); |
|
199 | ||
@@ 200-206 (lines=7) @@ | ||
197 | ||
198 | abstract public function getGenerateIndexSql(); |
|
199 | ||
200 | public function testGeneratesUniqueIndexCreationSql() |
|
201 | { |
|
202 | $indexDef = new \Doctrine\DBAL\Schema\Index('index_name', array('test', 'test2'), true); |
|
203 | ||
204 | $sql = $this->_platform->getCreateIndexSQL($indexDef, 'test'); |
|
205 | self::assertEquals($this->getGenerateUniqueIndexSql(), $sql); |
|
206 | } |
|
207 | ||
208 | abstract public function getGenerateUniqueIndexSql(); |
|
209 |