PayPal\Test\Api\IncentiveTest::testSerializationDeserialization PHP Method

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : Incentive
return PayPal\Api\Incentive
    public function testSerializationDeserialization()
    {
        $obj = new Incentive(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getId());
        $this->assertNotNull($obj->getCode());
        $this->assertNotNull($obj->getName());
        $this->assertNotNull($obj->getDescription());
        $this->assertNotNull($obj->getMinimumPurchaseAmount());
        $this->assertNotNull($obj->getLogoImageUrl());
        $this->assertNotNull($obj->getExpiryDate());
        $this->assertNotNull($obj->getType());
        $this->assertNotNull($obj->getTerms());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }