public function testValidatesDuplicateSotsPassed() { $elements = IformResource::options(405538); $json = '[{"id": "269024947","sort_order": "0"}, {"id": "269024950","sort_order": "0"}]'; $params = json_decode($json, true); $update = json_decode($elements->updateAll($params), true); $this->assertArrayHasKey('error_message', $update[1]); }
public function testLoadsOptionListResource() { $optionList = IformResource::options(88883); $this->assertInstanceOf('Iform\\Resources\\OptionList\\Options', $optionList); }