PayPal\Test\Api\VerifyWebhookSignatureTest::testPost PHP Method

testPost() public method

public testPost ( VerifyWebhookSignature $obj, $mockApiContext )
$obj PayPal\Api\VerifyWebhookSignature
    public function testPost($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(VerifyWebhookSignatureResponseTest::getJson()));
        $result = $obj->post($mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }