Exemple #1
0
 /**
  * @depends testDropColumn
  */
 public function testDropColumnRemoveIndexDuplicate()
 {
     $this->_connection->dropColumn($this->_tableName, 'column2');
     $this->assertEquals(array('column1'), $this->_getIndexColumns($this->_tableName, $this->_oneColumnIdxName), 'Column index must be preserved.');
     $this->assertFalse($this->_getIndexColumns($this->_tableName, $this->_twoColumnIdxName), 'Multiple-column index must be dropped to not duplicate existing index by indexed columns.');
 }