PayPal\Test\Api\TemplatesTest::testGetAll PHP Method

testGetAll() public method

public testGetAll ( Templates $obj, $mockApiContext )
$obj PayPal\Api\Templates
    public function testGetAll($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(TemplatesTest::getJson()));
        $params = array();
        $result = $obj->getAll($params, $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }