Skip to content

NOW MANAGED ON CODEBERG

Fix Tests race conditions

JonatanRek25c5170da215
diff --git a/tests/User/UserImpersonationTest.php b/tests/User/UserImpersonationTest.php
index 08ebdf95a..66ad72d77 100644
--- a/tests/User/UserImpersonationTest.php
+++ b/tests/User/UserImpersonationTest.php
@@ -6,6 +6,12 @@ use Tests\TestCase;
class UserImpersonationTest extends TestCase
{
+ protected function tearDown(): void
+ {
+ session()->forget('impersonate');
+ parent::tearDown();
+ }
+
public function test_impersonate_button_shown_on_edit_page_for_admin()
{
$viewer = $this->users->viewer();