File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,25 +21,25 @@ public function eventName(): string
21
21
22
22
it ('returns a Response instance ' , function () {
23
23
$ response = $ this ->hook ->response ();
24
-
24
+
25
25
expect ($ response )->toBeInstanceOf (Response::class);
26
26
});
27
27
28
28
it ('returns the same Response instance on multiple calls ' , function () {
29
29
$ response1 = $ this ->hook ->response ();
30
30
$ response2 = $ this ->hook ->response ();
31
-
31
+
32
32
expect ($ response1 )->toBe ($ response2 );
33
33
});
34
34
35
35
it ('creates a new Response instance on first call ' , function () {
36
36
$ reflection = new ReflectionClass ($ this ->hook );
37
37
$ property = $ reflection ->getProperty ('responseInstance ' );
38
38
$ property ->setAccessible (true );
39
-
39
+
40
40
expect ($ property ->getValue ($ this ->hook ))->toBeNull ();
41
-
41
+
42
42
$ response = $ this ->hook ->response ();
43
-
43
+
44
44
expect ($ property ->getValue ($ this ->hook ))->toBe ($ response );
45
- });
45
+ });
You can’t perform that action at this time.
0 commit comments