File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed
resources/views/livewire/pages/auth Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -177,4 +177,4 @@ public function register(): void
177
177
</x-container >
178
178
179
179
<x-join-sponsors :title =" __('global.sponsor_thanks')" />
180
- </div >
180
+ </div >
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
use App \Models \User ;
4
6
use Illuminate \Auth \Events \Verified ;
5
7
use Illuminate \Support \Facades \Event ;
6
8
use Illuminate \Support \Facades \URL ;
7
9
8
- test ('email verification screen can be rendered ' , function () {
10
+ test ('email verification screen can be rendered ' , function (): void {
9
11
$ user = User::factory ()->unverified ()->create ();
10
12
11
13
$ response = $ this ->actingAs ($ user )->get ('/verify-email ' );
12
14
13
15
$ response ->assertStatus (200 );
14
16
});
15
17
16
- test ('email can be verified ' , function () {
18
+ test ('email can be verified ' , function (): void {
17
19
$ user = User::factory ()->unverified ()->create ();
18
20
19
21
Event::fake ();
31
33
$ response ->assertRedirect (route ('dashboard ' , absolute: false ).'?verified=1 ' );
32
34
});
33
35
34
- test ('email is not verified with invalid hash ' , function () {
36
+ test ('email is not verified with invalid hash ' , function (): void {
35
37
$ user = User::factory ()->unverified ()->create ();
36
38
37
39
$ verificationUrl = URL ::temporarySignedRoute (
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
namespace Tests \Feature \Auth ;
4
6
5
7
use App \Models \User ;
6
8
use Livewire \Volt \Volt ;
7
9
8
- test ('confirm password screen can be rendered ' , function () {
10
+ test ('confirm password screen can be rendered ' , function (): void {
9
11
$ user = User::factory ()->create ();
10
12
11
13
$ response = $ this ->actingAs ($ user )->get ('/confirm-password ' );
15
17
->assertStatus (200 );
16
18
});
17
19
18
- test ('password can be confirmed ' , function () {
20
+ test ('password can be confirmed ' , function (): void {
19
21
$ user = User::factory ()->create ();
20
22
21
23
$ this ->actingAs ($ user );
30
32
->assertHasNoErrors ();
31
33
});
32
34
33
- test ('password is not confirmed with invalid password ' , function () {
35
+ test ('password is not confirmed with invalid password ' , function (): void {
34
36
$ user = User::factory ()->create ();
35
37
36
38
$ this ->actingAs ($ user );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
namespace Tests \Feature \Auth ;
4
6
5
7
use App \Models \User ;
6
8
use Illuminate \Support \Facades \Hash ;
7
9
use Livewire \Volt \Volt ;
8
10
9
- test ('password can be updated ' , function () {
11
+ test ('password can be updated ' , function (): void {
10
12
$ user = User::factory ()->create ();
11
13
12
14
$ this ->actingAs ($ user );
24
26
$ this ->assertTrue (Hash::check ('new-password ' , $ user ->refresh ()->password ));
25
27
});
26
28
27
- test ('correct password must be provided to update password ' , function () {
29
+ test ('correct password must be provided to update password ' , function (): void {
28
30
$ user = User::factory ()->create ();
29
31
30
32
$ this ->actingAs ($ user );
You can’t perform that action at this time.
0 commit comments