當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Api\LinksTest類代碼示例

本文整理匯總了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());
 }
開發者ID:omasterdesign,項目名稱:omasterdefault,代碼行數:11,代碼來源:PlanListTest.php

示例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());
 }
開發者ID:omasterdesign,項目名稱:omasterdefault,代碼行數:11,代碼來源:WebhookTest.php

示例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);
 }
開發者ID:omasterdesign,項目名稱:omasterdefault,代碼行數:11,代碼來源:CreditCardListTest.php

示例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;
 }
開發者ID:Lucerin,項目名稱:Yii-projects,代碼行數:8,代碼來源:CaptureTest.php

示例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());
 }
開發者ID:paypal,項目名稱:rest-api-sdk-php,代碼行數:12,代碼來源:TemplatesTest.php

示例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());
 }
開發者ID:johnmicahmiguel,項目名稱:yodaphp,代碼行數:13,代碼來源:ErrorTest.php

示例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());
 }
開發者ID:Roc4rdho,項目名稱:app,代碼行數:13,代碼來源:FundingOptionTest.php

示例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;
 }
開發者ID:berthojoris,項目名稱:rest-api-sdk-php,代碼行數:9,代碼來源:CreditCardTest.php

示例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");
 }
開發者ID:Roc4rdho,項目名稱:app,代碼行數:13,代碼來源:HyperSchemaTest.php

示例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;
 }
開發者ID:ewwgit,項目名稱:eptri,代碼行數:10,代碼來源:AuthorizationTest.php

示例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());
 }
開發者ID:omasterdesign,項目名稱:omasterdefault,代碼行數:14,代碼來源:PaymentInstructionTest.php

示例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());
 }
開發者ID:maherelgamil,項目名稱:Small-store-for-books-with-Laravel-5.1,代碼行數:14,代碼來源:WebhookEventTest.php

示例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;
 }
開發者ID:johnmicahmiguel,項目名稱:yodaphp,代碼行數:11,代碼來源:RefundTest.php

示例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;
 }
開發者ID:Lucerin,項目名稱:Yii-projects,代碼行數:11,代碼來源:SaleTest.php

示例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());
 }
開發者ID:omasterdesign,項目名稱:omasterdefault,代碼行數:16,代碼來源:CurrencyConversionTest.php


注:本文中的PayPal\Test\Api\LinksTest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。