Skip to content

Commit e3dfba4

Browse files
committed
feat: (LAR-107) Mise a jour
1 parent cd4c813 commit e3dfba4

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

resources/views/livewire/pages/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ public function register(): void
177177
</x-container>
178178

179179
<x-join-sponsors :title="__('global.sponsor_thanks')" />
180-
</div>
180+
</div>

tests/Feature/Auth/EmailVerificationTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use App\Models\User;
46
use Illuminate\Auth\Events\Verified;
57
use Illuminate\Support\Facades\Event;
68
use Illuminate\Support\Facades\URL;
79

8-
test('email verification screen can be rendered', function () {
10+
test('email verification screen can be rendered', function (): void {
911
$user = User::factory()->unverified()->create();
1012

1113
$response = $this->actingAs($user)->get('/verify-email');
1214

1315
$response->assertStatus(200);
1416
});
1517

16-
test('email can be verified', function () {
18+
test('email can be verified', function (): void {
1719
$user = User::factory()->unverified()->create();
1820

1921
Event::fake();
@@ -31,7 +33,7 @@
3133
$response->assertRedirect(route('dashboard', absolute: false).'?verified=1');
3234
});
3335

34-
test('email is not verified with invalid hash', function () {
36+
test('email is not verified with invalid hash', function (): void {
3537
$user = User::factory()->unverified()->create();
3638

3739
$verificationUrl = URL::temporarySignedRoute(

tests/Feature/Auth/PasswordConfirmationTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Tests\Feature\Auth;
46

57
use App\Models\User;
68
use Livewire\Volt\Volt;
79

8-
test('confirm password screen can be rendered', function () {
10+
test('confirm password screen can be rendered', function (): void {
911
$user = User::factory()->create();
1012

1113
$response = $this->actingAs($user)->get('/confirm-password');
@@ -15,7 +17,7 @@
1517
->assertStatus(200);
1618
});
1719

18-
test('password can be confirmed', function () {
20+
test('password can be confirmed', function (): void {
1921
$user = User::factory()->create();
2022

2123
$this->actingAs($user);
@@ -30,7 +32,7 @@
3032
->assertHasNoErrors();
3133
});
3234

33-
test('password is not confirmed with invalid password', function () {
35+
test('password is not confirmed with invalid password', function (): void {
3436
$user = User::factory()->create();
3537

3638
$this->actingAs($user);

tests/Feature/Auth/PasswordUpdateTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Tests\Feature\Auth;
46

57
use App\Models\User;
68
use Illuminate\Support\Facades\Hash;
79
use Livewire\Volt\Volt;
810

9-
test('password can be updated', function () {
11+
test('password can be updated', function (): void {
1012
$user = User::factory()->create();
1113

1214
$this->actingAs($user);
@@ -24,7 +26,7 @@
2426
$this->assertTrue(Hash::check('new-password', $user->refresh()->password));
2527
});
2628

27-
test('correct password must be provided to update password', function () {
29+
test('correct password must be provided to update password', function (): void {
2830
$user = User::factory()->create();
2931

3032
$this->actingAs($user);

0 commit comments

Comments
 (0)