Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created July 9, 2020 20:09
Show Gist options
  • Save minthemiddle/0fdf88153a2e83fa29eeab24c5370df1 to your computer and use it in GitHub Desktop.
Save minthemiddle/0fdf88153a2e83fa29eeab24c5370df1 to your computer and use it in GitHub Desktop.
Markdium-Lessons Learnt: PHPUnit for Beginners
private function create_user(is_admin = 0)
{
$this->user = factory(User::class)->create([
'is_admin' => $is_admin,
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment