Esempio n. 1
0
 public function testSearchVideosRelatedToSong()
 {
     $this->createSampleMediaSet();
     $song = Song::first();
     // We test on the facade here
     YouTubeFacade::shouldReceive('searchVideosRelatedToSong')->once();
     $this->visit("/api/youtube/search/song/{$song->id}");
 }