Created
July 9, 2020 20:09
-
-
Save minthemiddle/e6afe6317f1f20d15ea007bb916135dc to your computer and use it in GitHub Desktop.
Markdium-Lessons Learnt: PHPUnit for Beginners
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$response = $this->post('login', [ | |
'email' => 'EMAIL', | |
'password' => 'PW' | |
]); | |
// assert where you expect to be redirected to, e.g. home | |
$response->assertRedirect('/home'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment