public function testSetOptions()
 {
     $dbField = new DbField('field', 'string', 255, true, true, true);
     $options = ['limit' => 100];
     $dbField->setOptions($options);
     $result = $dbField->getOptions();
     $this->assertEquals($options, $result, "Setting options is broken");
 }
 /**
  * Method used for updating an existing DB table column.
  *
  * @param  \CsvMigrations\FieldHandlers\DbField $dbField DbField object
  * @return void
  */
 protected function _updateColumn(DbField $dbField)
 {
     $this->_table->changeColumn($dbField->getName(), $dbField->getType(), $dbField->getOptions());
     // set field as unique
     if ($dbField->getUnique()) {
         $this->_table->addIndex([$dbField->getName()], ['unique' => $dbField->getUnique()]);
     }
 }