public function testAddMyTracks() { $tracks = array('1id6H6vcwSB9GGv9NXh5cl', '3mqRLlD9j92BBv1ueFhJ1l'); $expected = json_encode($tracks); $headers = array('Authorization' => 'Bearer ' . $this->accessToken, 'Content-Type' => 'application/json'); $return = array('status' => 200); $stub = $this->setupStub('PUT', '/v1/me/tracks', $expected, $headers, $return); $api = new SpotifyWebAPI\SpotifyWebAPI($stub); $api->setAccessToken($this->accessToken); $response = $api->addMyTracks($tracks); $this->assertTrue($response); }