Skip to content

Commit 25c5170

Browse files
committed
Fix Tests race conditions
1 parent 08481b0 commit 25c5170

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/User/UserImpersonationTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
class UserImpersonationTest extends TestCase
88
{
9+
protected function tearDown(): void
10+
{
11+
session()->forget('impersonate');
12+
parent::tearDown();
13+
}
14+
915
public function test_impersonate_button_shown_on_edit_page_for_admin()
1016
{
1117
$viewer = $this->users->viewer();

0 commit comments

Comments
 (0)