Last active
January 31, 2019 14:08
-
-
Save sirawitpra/3643561a495cdaff4abda099b41be9a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
namespace Tests\Feature; | |
use Tests\DuskTestCase; | |
use Laravel\Dusk\Concerns\ProvidesBrowser; | |
class LoginTest extends DuskTestCase | |
{ | |
use ProvidesBrowser; // 1. Import this trait to your test | |
public function tearDown() | |
{ | |
parent::tearDown(); | |
static::closeAll(); // 2. And put this line | |
} | |
// your tests goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment