/** * @depends testSerializationDeserialization * @param DetailedRefund $obj */ public function testGetters($obj) { $this->assertEquals($obj->getCustom(), "TestSample"); $this->assertEquals($obj->getInvoiceNumber(), "TestSample"); $this->assertEquals($obj->getRefundToPayer(), CurrencyTest::getObject()); $this->assertEquals($obj->getRefundToExternalFunding(), ExternalFundingTest::getObject()); $this->assertEquals($obj->getRefundFromTransactionFee(), CurrencyTest::getObject()); $this->assertEquals($obj->getRefundFromReceivedAmount(), CurrencyTest::getObject()); $this->assertEquals($obj->getTotalRefundedAmount(), CurrencyTest::getObject()); }
/** * @depends testSerializationDeserialization * @param FundingInstrument $obj */ public function testGetters($obj) { $this->assertEquals($obj->getCreditCard(), CreditCardTest::getObject()); $this->assertEquals($obj->getCreditCardToken(), CreditCardTokenTest::getObject()); $this->assertEquals($obj->getPaymentCard(), PaymentCardTest::getObject()); $this->assertEquals($obj->getBankAccount(), ExtendedBankAccountTest::getObject()); $this->assertEquals($obj->getBankAccountToken(), BankTokenTest::getObject()); $this->assertEquals($obj->getCredit(), CreditTest::getObject()); $this->assertEquals($obj->getIncentive(), IncentiveTest::getObject()); $this->assertEquals($obj->getExternalFunding(), ExternalFundingTest::getObject()); $this->assertEquals($obj->getCarrierAccountToken(), CarrierAccountTokenTest::getObject()); $this->assertEquals($obj->getCarrierAccount(), CarrierAccountTest::getObject()); $this->assertEquals($obj->getPrivateLabelCard(), PrivateLabelCardTest::getObject()); $this->assertEquals($obj->getBilling(), BillingTest::getObject()); }
/** * @depends testSerializationDeserialization * @param CartBase $obj */ public function testGetters($obj) { $this->assertEquals($obj->getReferenceId(), "TestSample"); $this->assertEquals($obj->getAmount(), AmountTest::getObject()); $this->assertEquals($obj->getPayee(), PayeeTest::getObject()); $this->assertEquals($obj->getDescription(), "TestSample"); $this->assertEquals($obj->getNoteToPayee(), "TestSample"); $this->assertEquals($obj->getCustom(), "TestSample"); $this->assertEquals($obj->getInvoiceNumber(), "TestSample"); $this->assertEquals($obj->getSoftDescriptor(), "TestSample"); $this->assertEquals($obj->getSoftDescriptorCity(), "TestSample"); $this->assertEquals($obj->getPaymentOptions(), PaymentOptionsTest::getObject()); $this->assertEquals($obj->getItemList(), ItemListTest::getObject()); $this->assertEquals($obj->getNotifyUrl(), "http://www.google.com"); $this->assertEquals($obj->getOrderUrl(), "http://www.google.com"); $this->assertEquals($obj->getExternalFunding(), ExternalFundingTest::getObject()); }