create(); /** @var Song $song */ $song = Song::factory()->make(); $job = new ScrobbleJob($user, $song, 100); $lastfm = Mockery::mock(LastfmService::class); $lastfm->shouldReceive('scrobble') ->once() ->with($song, $user, 100); $job->handle($lastfm); } }