getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : PayPal\Api\MerchantPreferences
return PayPal\Api\MerchantPreferences
コード例 #1
0
ファイル: PlanTest.php プロジェクト: Roc4rdho/app
 /**
  * @depends testSerializationDeserialization
  * @param Plan $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getPaymentDefinitions(), PaymentDefinitionTest::getObject());
     $this->assertEquals($obj->getTerms(), TermsTest::getObject());
     $this->assertEquals($obj->getMerchantPreferences(), MerchantPreferencesTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
コード例 #2
0
ファイル: AgreementTest.php プロジェクト: Roc4rdho/app
 /**
  * @depends testSerializationDeserialization
  * @param Agreement $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getStartDate(), "TestSample");
     $this->assertEquals($obj->getPayer(), PayerTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getOverrideMerchantPreferences(), MerchantPreferencesTest::getObject());
     $this->assertEquals($obj->getOverrideChargeModels(), OverrideChargeModelTest::getObject());
     $this->assertEquals($obj->getPlan(), PlanTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }