withoutEvents(); $this->createSampleMediaSet(); $song = Song::first(); $ts = time(); m::mock(Lastfm::class, ['enabled' => true]) ->shouldReceive('scrobble') ->with($song->album->artist->name, $song->title, $ts, $song->album->name, 'bar'); $this->post("/api/{$song->id}/scrobble/$ts"); } }