public function testGetCategory() { $options = array('country' => 'SE', 'locale' => 'sv-SE'); $headers = array('Authorization' => 'Bearer ' . $this->accessToken); $return = array('body' => get_fixture('category')); $stub = $this->setupStub('GET', '/v1/browse/categories/party', $options, $headers, $return); $api = new SpotifyWebAPI\SpotifyWebAPI($stub); $api->setAccessToken($this->accessToken); $response = $api->getCategory('party', $options); $this->assertObjectHasAttribute('id', $response); }