public function test_removeByIndex_RemovesMultipleItemsByIndex_InOptionTable_IfArgIsArray()
 {
     $this->distributedList->removeByIndex(array(1, 3));
     $expectedOptionList = array('val1', 'val3');
     $this->assertEquals(serialize($expectedOptionList), $this->getOptionValueForList());
 }
 /**
  * @inheritdoc
  */
 public function setAll($items)
 {
     $items = array_unique($items, SORT_REGULAR);
     $items = array_values($items);
     parent::setAll($items);
 }
 protected function getListOptionValue()
 {
     $result = parent::getListOptionValue();
     $this->convertOldDistributedList($result);
     return $result;
 }