public function testMultipleSongs() { $songs = Song::take(2)->get(); $mocked = Download::shouldReceive('from')->once()->andReturn($this->mediaPath . '/blank.mp3'); // should be a zip file, but we're testing here… $this->get("api/download/songs?songs[]={$songs[0]->id}&songs[]={$songs[1]->id}")->seeStatusCode(200); }