protected function sva2() { return TestGiftCard::validGiftCardNotEncrypted2(); }
public function testGiftCardManualCardShouldReplace() { $giftService = new HpsGiftCardService(TestServicesConfig::ValidMultiUseConfig()); $response = $giftService->replace(TestGiftCard::validGiftCardNotEncrypted(), TestGiftCard::validGiftCardNotEncrypted2()); $this->assertEquals('0', $response->responseCode); }
/** * @expectedException HpsArgumentException * @expectedExceptionMessage Replace needs an oldCard */ public function testReplaceWithNoOldCard() { $this->service->replace()->withNewCard(TestGiftCard::validGiftCardNotEncrypted2())->execute(); }