Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera

uno-de-piera/LoginTest.php Secret

Created May 31, 2020
Embed
What would you like to do?
<?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