Exemplo n.º 1
0
 public function testAddOptionAndSetOptionsAndGetOptions()
 {
     $value = 'testValue';
     $label = 'testLabel';
     $params = ['paramKey' => 'paramValue'];
     $options = [['value' => $value, 'label' => $label, 'params' => $params]];
     $this->assertEquals([], $this->select->getOptions());
     $this->select->addOption($value, $label, $params);
     $this->assertEquals($options, $this->select->getOptions());
     $options[0]['value'] = 'newValue';
     $this->select->setOptions($options);
     $this->assertEquals($options, $this->select->getOptions());
 }