Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created July 9, 2020 20:05
Show Gist options
  • Select an option

  • Save minthemiddle/913aa836d398fb8aeceda0076c289a79 to your computer and use it in GitHub Desktop.

Select an option

Save minthemiddle/913aa836d398fb8aeceda0076c289a79 to your computer and use it in GitHub Desktop.
Markdium-Lessons Learnt: Confident Laravel
$mock = \Mockery::mock();
$mock->shouldReceive('info') // method name
->once()
->with('video.watched', [$video->id]);
Log::swap($mock);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment