PayPal\Test\Api\FlowConfigTest::getObject PHP Method

getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : FlowConfig
return PayPal\Api\FlowConfig
    public static function getObject()
    {
        return new FlowConfig(self::getJson());
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param WebProfile $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getFlowConfig(), FlowConfigTest::getObject());
     $this->assertEquals($obj->getInputFields(), InputFieldsTest::getObject());
     $this->assertEquals($obj->getPresentation(), PresentationTest::getObject());
 }