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

testGet() public method

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