Skip to content

Commit

Permalink
Fix warning in SearchIndexSubscriberTest (see #1991)
Browse files Browse the repository at this point in the history
Description
-----------

| Q                | A
| -----------------| ---
| Fixed issues     | -
| Docs PR or issue | -

Fixes the following warning that currently appears when running any test:

```
Warning: array_reverse() expects parameter 1 to be array, null given in vendor\contao\contao\vendor\symfony\http-client\Exception\HttpExceptionTrait.php on line 34
```

Commits
-------

f146d94 fix warning in SearchIndexSubscriberTest
e860d91 Merge branch '4.9' into fix/search-index-subscriber-test-warning
  • Loading branch information
fritzmg committed Jul 26, 2020
1 parent ca3c8f2 commit 2026082
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,12 @@ private function getResponse(bool $asHtml, int $statusCode = 200): ResponseInter
->willReturn($statusCode)
;

$response
->method('getInfo')
->with('response_headers')
->willReturn([])
;

return $response;
}

Expand Down

0 comments on commit 2026082

Please sign in to comment.