We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bf539 commit 7c69ab4Copy full SHA for 7c69ab4
1 file changed
tests/Auth/CpForgotPasswordTest.php
@@ -5,6 +5,7 @@
5
use Illuminate\Support\Facades\Notification;
6
use Illuminate\Support\Facades\Password;
7
use PHPUnit\Framework\Attributes\Test;
8
+use Statamic\Auth\Passwords\PasswordReset;
9
use Statamic\Facades\User;
10
use Tests\PreventSavingStacheItemsToDisk;
11
use Tests\TestCase;
@@ -13,6 +14,16 @@ class CpForgotPasswordTest extends TestCase
13
14
{
15
use PreventSavingStacheItemsToDisk;
16
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
27
#[Test]
28
public function it_returns_generic_success_for_non_existent_user_to_prevent_enumeration()
29
0 commit comments