/** * @covers ChoiceBox::getSelectField */ public function testGetEmptySelectField() { $this->setUnit('select'); $this->object->setListOptions($this->getEmptyListOptionsMock()); $result = $this->object->getSelectField($this->renderAPI, $this->unit, 'fieldMUNIT-2222222-22222-22222222-MUNITfield'); $this->assertInstanceOf('SelectField', $result); $this->assertEquals('<select name="fieldMUNIT-2222222-22222-22222222-MUNITfield" id="fieldMUNIT-2222222-22222-22222222-MUNITfield"></select>', $result->renderElement()); }