File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 24
24
"php" : " >=7.2" ,
25
25
"ext-json" : " *" ,
26
26
"cviebrock/discourse-php" : " ^0.9.3" ,
27
- "guzzlehttp/guzzle" : " ^6.4|^7.0.1" ,
28
- "illuminate/auth" : " ~5.5|~6|~7|~8" ,
29
- "illuminate/routing" : " ~5.5|~6|~7|~8" ,
30
- "illuminate/support" : " ~5.5|~6|~7|~8"
27
+ "guzzlehttp/guzzle" : " ^6.4|^7.0.1|^7.2 " ,
28
+ "illuminate/auth" : " ~5.5|~6|~7|~8|~9 " ,
29
+ "illuminate/routing" : " ~5.5|~6|~7|~8|~9 " ,
30
+ "illuminate/support" : " ~5.5|~6|~7|~8|~9 "
31
31
},
32
32
"require-dev" : {
33
33
"mockery/mockery" : " ^1.3.1" ,
34
34
"phpunit/phpunit" : " ^8.4|^9.0" ,
35
35
"psy/psysh" : " ^0.10" ,
36
36
"symfony/thanks" : " ^1.1" ,
37
- "symfony/var-dumper" : " ~3.0|^4.2"
37
+ "symfony/var-dumper" : " ~3.0|^4.2|^6 "
38
38
},
39
39
"autoload" : {
40
40
"psr-4" : {
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public function it_logs_out_the_discourse_user_when_triggered()
129
129
130
130
$ this ->response_mock ->shouldReceive ('getBody ' )
131
131
->once ()
132
- ->andReturn (json_encode (['user ' => $ this ->user_mock ]));
132
+ ->andReturn (( new Response ( 200 , [], json_encode (['user ' => $ this ->user_mock ])))-> getBody ( ));
133
133
134
134
$ this ->response_mock ->shouldReceive ('getStatusCode ' )
135
135
->twice ()
@@ -262,7 +262,7 @@ public function on_user_logout_if_discourse_response_code_is_not_200_log_a_notic
262
262
263
263
$ good_response ->shouldReceive ('getBody ' )
264
264
->once ()
265
- ->andReturn (json_encode (['user ' => $ this ->user_mock ]));
265
+ ->andReturn (( new Response ( 200 , [], json_encode (['user ' => $ this ->user_mock ])))-> getBody ( ));
266
266
267
267
$ this ->guzzle_mock ->shouldReceive ('get ' )
268
268
->with ('users/by-external/1.json ' , $ configs )
You can’t perform that action at this time.
0 commit comments