diff --git a/src/Core/CHANGELOG.md b/src/Core/CHANGELOG.md index 71cd2e084..3170816fe 100644 --- a/src/Core/CHANGELOG.md +++ b/src/Core/CHANGELOG.md @@ -6,6 +6,7 @@ - Enable compiler optimization for the `sprintf` function. - Avoid calls to spl_object_ methods when computing cache key. +- Added SimpleMockedResponse to response of ResultMockFactory. ## 1.22.0 diff --git a/src/Core/src/Test/ResultMockFactory.php b/src/Core/src/Test/ResultMockFactory.php index ac9af121e..b2ab34e35 100644 --- a/src/Core/src/Test/ResultMockFactory.php +++ b/src/Core/src/Test/ResultMockFactory.php @@ -285,6 +285,10 @@ private static function getResponseObject(): Response $property->setAccessible(true); $property->setValue($response, true); + $property = $reflectionClass->getProperty('httpResponse'); + $property->setAccessible(true); + $property->setValue($response, new SimpleMockedResponse()); + return $response; } }