本文整理汇总了PHP中PayPal\Test\Api\LinksTest::getObject方法的典型用法代码示例。如果您正苦于以下问题:PHP LinksTest::getObject方法的具体用法?PHP LinksTest::getObject怎么用?PHP LinksTest::getObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PayPal\Test\Api\LinksTest
的用法示例。
在下文中一共展示了LinksTest::getObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetters
/**
* @depends testSerializationDeserialization
* @param PlanList $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getPlans(), PlanTest::getObject());
$this->assertEquals($obj->getTotalItems(), "TestSample");
$this->assertEquals($obj->getTotalPages(), "TestSample");
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例2: testGetters
/**
* @depends testSerializationDeserialization
* @param CreditCardList $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getItems(), CreditCardTest::getObject());
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
$this->assertEquals($obj->getTotalItems(), 123);
$this->assertEquals($obj->getTotalPages(), 123);
}
示例3: testGetters
/**
* @depends testSerializationDeserialization
* @param Webhook $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getId(), "TestSample");
$this->assertEquals($obj->getUrl(), "http://www.google.com");
$this->assertEquals($obj->getEventTypes(), WebhookEventTypeTest::getObject());
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例4: testGetters
/**
* @depends testSerializationDeserialization
* @param Templates $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getAddresses(), AddressTest::getObject());
$this->assertEquals($obj->getEmails(), "TestSample");
$this->assertEquals($obj->getPhones(), PhoneTest::getObject());
$this->assertEquals($obj->getTemplates(), TemplateTest::getObject());
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例5: setup
public function setup()
{
$this->captures['partial'] = self::createCapture();
$capture = self::createCapture();
$capture->setAmount(AmountTest::createAmount());
$capture->setLinks(array(LinksTest::getObject()));
$this->captures['full'] = $capture;
}
示例6: testGetters
/**
* @depends testSerializationDeserialization
* @param HyperSchema $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
$this->assertEquals($obj->getFragmentResolution(), "TestSample");
$this->assertEquals($obj->getReadonly(), true);
$this->assertEquals($obj->getContentEncoding(), "TestSample");
$this->assertEquals($obj->getPathStart(), "TestSample");
$this->assertEquals($obj->getMediaType(), "TestSample");
}
示例7: testGetters
/**
* @depends testSerializationDeserialization
* @param Error $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getName(), "TestSample");
$this->assertEquals($obj->getDebugId(), "TestSample");
$this->assertEquals($obj->getMessage(), "TestSample");
$this->assertEquals($obj->getInformationLink(), "TestSample");
$this->assertEquals($obj->getDetails(), ErrorDetailsTest::getObject());
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例8: testGetters
/**
* @depends testSerializationDeserialization
* @param FundingOption $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getId(), "TestSample");
$this->assertEquals($obj->getFundingSources(), FundingSourceTest::getObject());
$this->assertEquals($obj->getBackupFundingInstrument(), FundingInstrumentTest::getObject());
$this->assertEquals($obj->getCurrencyConversion(), CurrencyConversionTest::getObject());
$this->assertEquals($obj->getInstallmentInfo(), InstallmentInfoTest::getObject());
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例9: setup
public function setup()
{
$card = self::createCreditCard();
$card->setBillingAddress(AddressTest::getObject());
$card->setLinks(array(LinksTest::getObject()));
$this->cards['full'] = $card;
$card = self::createCreditCard();
$this->cards['partial'] = $card;
}
示例10: testGetters
/**
* @depends testSerializationDeserialization
* @param WebhookEvent $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getId(), "TestSample");
$this->assertEquals($obj->getCreateTime(), "TestSample");
$this->assertEquals($obj->getResourceType(), "TestSample");
$this->assertEquals($obj->getEventType(), "TestSample");
$this->assertEquals($obj->getSummary(), "TestSample");
$this->assertEquals($obj->getResource(), "TestSampleObject");
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例11: testGetters
/**
* @depends testSerializationDeserialization
* @param PaymentInstruction $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getReferenceNumber(), "TestSample");
$this->assertEquals($obj->getInstructionType(), "TestSample");
$this->assertEquals($obj->getRecipientBankingInstruction(), RecipientBankingInstructionTest::getObject());
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
$this->assertEquals($obj->getPaymentDueDate(), "TestSample");
$this->assertEquals($obj->getNote(), "TestSample");
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例12: createRefund
public static function createRefund()
{
$refund = new Refund();
$refund->setCreateTime(self::$createTime);
$refund->setAmount(AmountTest::createAmount());
$refund->setCaptureId(self::$captureId);
$refund->setId(self::$id);
$refund->setLinks(array(LinksTest::getObject()));
$refund->setParentPayment(self::$parentPayment);
return $refund;
}
示例13: createAuthorization
public static function createAuthorization()
{
$authorization = new Authorization();
$authorization->setCreateTime(self::$create_time);
$authorization->setId(self::$id);
$authorization->setState(self::$state);
$authorization->setClearingTime(self::$clearing_time);
$authorization->setAmount(AmountTest::createAmount());
$authorization->setLinks(array(LinksTest::getObject()));
return $authorization;
}
示例14: testGetters
/**
* @depends testSerializationDeserialization
* @param Capture $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getId(), "TestSample");
$this->assertEquals($obj->getAmount(), AmountTest::getObject());
$this->assertEquals($obj->getIsFinalCapture(), true);
$this->assertEquals($obj->getState(), "TestSample");
$this->assertEquals($obj->getParentPayment(), "TestSample");
$this->assertEquals($obj->getTransactionFee(), CurrencyTest::getObject());
$this->assertEquals($obj->getCreateTime(), "TestSample");
$this->assertEquals($obj->getUpdateTime(), "TestSample");
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
示例15: testGetters
/**
* @depends testSerializationDeserialization
* @param PayoutBatchHeader $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getPayoutBatchId(), "TestSample");
$this->assertEquals($obj->getBatchStatus(), "TestSample");
$this->assertEquals($obj->getTimeCreated(), "TestSample");
$this->assertEquals($obj->getTimeCompleted(), "TestSample");
$this->assertEquals($obj->getSenderBatchHeader(), PayoutSenderBatchHeaderTest::getObject());
$this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
$this->assertEquals($obj->getFees(), CurrencyTest::getObject());
$this->assertEquals($obj->getErrors(), ErrorTest::getObject());
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}