public function testSendReturnAssoc() { $request = new SpotifyWebAPI\Request(); $request->setReturnAssoc(true); $response = $request->send('GET', 'https://api.spotify.com/v1/albums/7u6zL7kqpgLPISZYXNTgYk'); $this->assertArrayHasKey('id', $response['body']); }
public function testSendStatus() { $response = SpotifyWebAPI\Request::send('GET', 'https://api.spotify.com/v1/albums/7u6zL7kqpgLPISZYXNTgYk'); $this->assertEquals(200, $response['status']); }