createSampleMediaSet(); $song = Song::first(); // We test on the facade here YouTube::shouldReceive('searchVideosRelatedToSong')->once(); $this->getAsUser("/api/youtube/search/song/{$song->id}"); } }