本文整理汇总了PHP中PayPal\Test\Api\LinksTest类的典型用法代码示例。如果您正苦于以下问题:PHP LinksTest类的具体用法?PHP LinksTest怎么用?PHP LinksTest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了LinksTest类的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 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());
}
示例3: 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);
}
示例4: setup
public function setup()
{
$this->captures['partial'] = self::createCapture();
$capture = self::createCapture();
$capture->setAmount(AmountTest::createAmount());
$capture->setLinks(array(LinksTest::createLinks()));
$this->captures['full'] = $capture;
}
示例5: 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());
}
示例6: 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());
}
示例7: 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());
}
示例8: setup
public function setup()
{
$card = self::createCreditCard();
$card->setBillingAddress(AddressTest::createAddress());
$card->setLinks(array(LinksTest::createLinks()));
$this->cards['full'] = $card;
$card = self::createCreditCard();
$this->cards['partial'] = $card;
}
示例9: 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");
}
示例10: createAuthorization
public static function createAuthorization()
{
$authorization = new Authorization();
$authorization->setCreateTime(self::$create_time);
$authorization->setId(self::$id);
$authorization->setState(self::$state);
$authorization->setAmount(AmountTest::createAmount());
$authorization->setLinks(array(LinksTest::createLinks()));
return $authorization;
}
示例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: 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());
}
示例13: 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;
}
示例14: createSale
public static function createSale()
{
$sale = new Sale();
$sale->setAmount(AmountTest::createAmount());
$sale->setCreateTime(self::$createTime);
$sale->setId(self::$id);
$sale->setLinks(array(LinksTest::createLinks()));
$sale->setParentPayment(self::$parentPayment);
$sale->setState(self::$state);
return $sale;
}
示例15: testGetters
/**
* @depends testSerializationDeserialization
* @param CurrencyConversion $obj
*/
public function testGetters($obj)
{
$this->assertEquals($obj->getConversionDate(), "TestSample");
$this->assertEquals($obj->getFromCurrency(), "TestSample");
$this->assertEquals($obj->getFromAmount(), "TestSample");
$this->assertEquals($obj->getToCurrency(), "TestSample");
$this->assertEquals($obj->getToAmount(), "TestSample");
$this->assertEquals($obj->getConversionType(), "TestSample");
$this->assertEquals($obj->getConversionTypeChangeable(), true);
$this->assertEquals($obj->getWebUrl(), "http://www.google.com");
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}