Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 31, 2020 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/85c89ff2f2db8362e141e24a67e5b227 to your computer and use it in GitHub Desktop.
Save uno-de-piera/85c89ff2f2db8362e141e24a67e5b227 to your computer and use it in GitHub Desktop.
<?php
public function testLogin() {
$this->browse(function(Browser $browser) {
$browser->loginAs($this->user->id)
->visit('/home')
->assertSee('You are logged in!');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment