PayPal\Test\Api\WebhookEventTest::testResend PHP Method

testResend() public method

public testResend ( WebhookEvent $obj, $mockApiContext )
$obj PayPal\Api\WebhookEvent
    public function testResend($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(self::getJson()));
        $eventResend = EventResendTest::getObject();
        $result = $obj->resend($eventResend, $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }