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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : RelatedResources
return PayPal\Api\RelatedResources
    public function testSerializationDeserialization()
    {
        $obj = new RelatedResources(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getSale());
        $this->assertNotNull($obj->getAuthorization());
        $this->assertNotNull($obj->getOrder());
        $this->assertNotNull($obj->getCapture());
        $this->assertNotNull($obj->getRefund());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }