PayPal\Test\Api\WebProfileTest::testGetList PHP Method

testGetList() public method

public testGetList ( PayPal\Api\WebProfile $obj, $mockApiContext )
$obj PayPal\Api\WebProfile
    public function testGetList($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(json_encode(array(json_decode(WebProfileTest::getJson())))));
        $result = $obj->get_list($mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }