File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function testRunDispatch(): void
47
47
// Run
48
48
call_user_func (
49
49
$ this ->action ,
50
- $ shop ->getId (0 )
50
+ $ shop ->getId ()
51
51
);
52
52
53
53
Queue::assertPushed ($ jobClass );
@@ -68,7 +68,7 @@ public function testRunInline(): void
68
68
// Run
69
69
$ result = call_user_func (
70
70
$ this ->action ,
71
- $ shop ->getId (0 )
71
+ $ shop ->getId ()
72
72
);
73
73
74
74
$ this ->assertTrue ($ result );
@@ -85,7 +85,7 @@ public function testRunNoJobs(): void
85
85
// Run
86
86
$ result = call_user_func (
87
87
$ this ->action ,
88
- $ shop ->getId (0 )
88
+ $ shop ->getId ()
89
89
);
90
90
91
91
$ this ->assertFalse ($ result );
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function testShouldThrowExceptionForExpiredToken(): void
47
47
{
48
48
$ this ->expectException (AssertionFailedException::class);
49
49
50
- $ token = $ this ->buildToken (['exp ' => Carbon::now ()->subDay (1 )]);
50
+ $ token = $ this ->buildToken (['exp ' => Carbon::now ()->subDay ()]);
51
51
SessionToken::fromNative ($ token );
52
52
}
53
53
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public function testApiWithoutToken(): void
13
13
14
14
$ response = $ this ->getJson ('/api ' , ['HTTP_X-Shop-Domain ' => $ shop ->name ]);
15
15
$ response ->assertStatus (Response::HTTP_BAD_REQUEST );
16
- $ response ->assertExactJson (['error ' => 'Session token is invalid. ' ], $ response -> getContent () );
16
+ $ response ->assertExactJson (['error ' => 'Session token is invalid. ' ]);
17
17
}
18
18
19
19
public function testApiWithToken (): void
@@ -24,7 +24,7 @@ public function testApiWithToken(): void
24
24
'HTTP_X-Shop-Domain ' => $ shop ->name ,
25
25
'HTTP_Authorization ' => "Bearer {$ this ->buildToken ()}" ,
26
26
]);
27
- $ response ->assertExactJson ([], $ response -> getContent () );
27
+ $ response ->assertExactJson ([]);
28
28
$ response ->assertOk ();
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments