Slide 33
Slide 33 text
@pelshoff
$client->expects($this->any())
->method('request')
->willReturnOnConsecutiveCalls(
new JsonResponse(['access_token' => 'testAccessToken']), // authenticateClient
new JsonResponse(['refresh_token' => 'testToken']),
new JsonResponse(['data' => [
[
'standingInstructionType' => StandingInstruction::STANDING_INSTRUCTION_PURCHASE,
'fundCode' => 'testFundCode',
'endDate' => date('Y-m-d', strtotime('+99 year')),
'standingInstructionNumber' => 3,
],
]]), // get
new JsonResponse([]), // le remove
new JsonResponse([]), // put
); 100%
converage!
:D
Real
code!