refactor: auto refactor via rector
This commit is contained in:
@@ -7,13 +7,13 @@ use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Livewire\Livewire;
|
||||
|
||||
test('reset password link screen can be rendered', function () {
|
||||
test('reset password link screen can be rendered', function (): void {
|
||||
$response = $this->get('/forgot-password');
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
|
||||
test('reset password link can be requested', function () {
|
||||
test('reset password link can be requested', function (): void {
|
||||
Notification::fake();
|
||||
|
||||
$user = User::factory()->create();
|
||||
@@ -25,7 +25,7 @@ test('reset password link can be requested', function () {
|
||||
Notification::assertSentTo($user, ResetPasswordNotification::class);
|
||||
});
|
||||
|
||||
test('reset password screen can be rendered', function () {
|
||||
test('reset password screen can be rendered', function (): void {
|
||||
Notification::fake();
|
||||
|
||||
$user = User::factory()->create();
|
||||
@@ -34,7 +34,7 @@ test('reset password screen can be rendered', function () {
|
||||
->set('email', $user->email)
|
||||
->call('sendPasswordResetLink');
|
||||
|
||||
Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) {
|
||||
Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification): true {
|
||||
$response = $this->get('/reset-password/'.$notification->token);
|
||||
|
||||
$response->assertStatus(200);
|
||||
@@ -43,7 +43,7 @@ test('reset password screen can be rendered', function () {
|
||||
});
|
||||
});
|
||||
|
||||
test('password can be reset with valid token', function () {
|
||||
test('password can be reset with valid token', function (): void {
|
||||
Notification::fake();
|
||||
|
||||
$user = User::factory()->create();
|
||||
@@ -52,7 +52,7 @@ test('password can be reset with valid token', function () {
|
||||
->set('email', $user->email)
|
||||
->call('sendPasswordResetLink');
|
||||
|
||||
Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) use ($user) {
|
||||
Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) use ($user): true {
|
||||
$response = Livewire::test(ResetPassword::class, ['token' => $notification->token])
|
||||
->set('email', $user->email)
|
||||
->set('password', 'password')
|
||||
|
||||
Reference in New Issue
Block a user