public function testUnitedStates() { $client = new CaravanaApi('./'); $response = $client->countryApi()->getUnitedStates(); $this->assertInstanceOf('Caravana\\Core\\Models\\Responses\\Country', $response); $this->assertEquals($response->getId(), CountryDataUtil::getUnitedStatesId()); $this->assertEquals($response->getName(), 'United States'); }
/** * @return Country * @throws UnauthorizedClientException */ public function getUnitedStates() { return $this->show(CountryDataUtil::getUnitedStatesId()); }