public function testItReturnsChoiceIdIfChoiceNameIsNotFound() { $fieldName = 'myCustomField'; $choiceId = 1; $mapping = array($fieldName => array()); $this->client->addChoicesMapping($mapping); $result = $this->client->getChoiceName($fieldName, $choiceId); $this->assertEquals($choiceId, $result); }