Skip to content

Commit df34042

Browse files
authored
Merge pull request #42 from jtolj/laravel-9
Update to support Laravel 9
2 parents 71fe438 + 15a3f50 commit df34042

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"php": ">=7.2",
2525
"ext-json": "*",
2626
"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"
3131
},
3232
"require-dev": {
3333
"mockery/mockery": "^1.3.1",
3434
"phpunit/phpunit": "^8.4|^9.0",
3535
"psy/psysh": "^0.10",
3636
"symfony/thanks": "^1.1",
37-
"symfony/var-dumper": "~3.0|^4.2"
37+
"symfony/var-dumper": "~3.0|^4.2|^6"
3838
},
3939
"autoload": {
4040
"psr-4": {

tests/Listeners/LogoutDiscourseUserTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function it_logs_out_the_discourse_user_when_triggered()
129129

130130
$this->response_mock->shouldReceive('getBody')
131131
->once()
132-
->andReturn(json_encode(['user' => $this->user_mock]));
132+
->andReturn((new Response(200, [], json_encode(['user' => $this->user_mock])))->getBody());
133133

134134
$this->response_mock->shouldReceive('getStatusCode')
135135
->twice()
@@ -262,7 +262,7 @@ public function on_user_logout_if_discourse_response_code_is_not_200_log_a_notic
262262

263263
$good_response->shouldReceive('getBody')
264264
->once()
265-
->andReturn(json_encode(['user' => $this->user_mock]));
265+
->andReturn((new Response(200, [], json_encode(['user' => $this->user_mock])))->getBody());
266266

267267
$this->guzzle_mock->shouldReceive('get')
268268
->with('users/by-external/1.json', $configs)

0 commit comments

Comments
 (0)