getMockRequest(), ''); } public function testGetMatchingPaymentProfileId() { $httpResponse = $this->getMockHttpResponse('CIMGetPaymentProfileSuccess.txt'); $mockRequest = \Mockery::mock('\Omnipay\Common\Message\RequestInterface'); $mockRequest->shouldReceive('getCustomerProfileId')->andReturn('28972085'); $response = new CIMGetPaymentProfileResponse($mockRequest, $httpResponse->getBody()); $this->assertEquals('{"customerProfileId":"28972085","customerPaymentProfileId":"26485433"}', $response->getCardReference()); } }