Skip to content

Commit 40fdf47

Browse files
authored
[Core][Mock] Make sure we signal that $bodyDownloaded=true (#958)
1 parent 3975d9c commit 40fdf47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Test/ResultMockFactory.php

+5
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,15 @@ private static function getResponseObject(): Response
263263
{
264264
$reflectionClass = new \ReflectionClass(Response::class);
265265
$response = $reflectionClass->newInstanceWithoutConstructor();
266+
266267
$property = $reflectionClass->getProperty('resolveResult');
267268
$property->setAccessible(true);
268269
$property->setValue($response, true);
269270

271+
$property = $reflectionClass->getProperty('bodyDownloaded');
272+
$property->setAccessible(true);
273+
$property->setValue($response, true);
274+
270275
return $response;
271276
}
272277
}

0 commit comments

Comments
 (0)