Ejemplo n.º 1
0
 public function testCurrentUserFollows()
 {
     $options = array('74ASZWbe4lXaubB36ztrGX', '36QJpDe2go2KgaRleHCDTp');
     $expected = array('ids' => '74ASZWbe4lXaubB36ztrGX,36QJpDe2go2KgaRleHCDTp', 'type' => 'artist');
     $headers = array('Authorization' => 'Bearer ' . $this->accessToken);
     $return = array('body' => get_fixture('user-follows'));
     $stub = $this->setupStub('GET', '/v1/me/following/contains', $expected, $headers, $return);
     $api = new SpotifyWebAPI\SpotifyWebAPI($stub);
     $api->setAccessToken($this->accessToken);
     $response = $api->currentUserFollows('artist', $options);
     $this->assertTrue($response[0]);
 }