Skip to content

Commit 7c69ab4

Browse files
committed
needed
1 parent f9bf539 commit 7c69ab4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/Auth/CpForgotPasswordTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Support\Facades\Notification;
66
use Illuminate\Support\Facades\Password;
77
use PHPUnit\Framework\Attributes\Test;
8+
use Statamic\Auth\Passwords\PasswordReset;
89
use Statamic\Facades\User;
910
use Tests\PreventSavingStacheItemsToDisk;
1011
use Tests\TestCase;
@@ -13,6 +14,16 @@ class CpForgotPasswordTest extends TestCase
1314
{
1415
use PreventSavingStacheItemsToDisk;
1516

17+
public function tearDown(): void
18+
{
19+
// Prevent leaking into other tests
20+
PasswordReset::resetFormUrl(null);
21+
PasswordReset::resetFormRoute(null);
22+
PasswordReset::redirectAfterReset(null);
23+
24+
parent::tearDown();
25+
}
26+
1627
#[Test]
1728
public function it_returns_generic_success_for_non_existent_user_to_prevent_enumeration()
1829
{

0 commit comments

Comments
 (0)