public function testSubscriptionContext() { $quantumView = new Ups\QuantumView(); $quantumView->setRequest(new RequestMock('/QVEvents/Response2.xml')); $quantumView->setContext('unit test'); $quantumView->getSubscription(null, time() - 24 * 6 * 3600); $response = $quantumView->getResponse()->getResponse(); $this->assertEquals('unit test', (string) $response->Response->TransactionReference->CustomerContext); }
/** * @return ResponseInterface */ public function getResponse() { return $this->upsQuantumView->getResponse(); }