PayPal\Test\Api\PaymentTest::testExecute PHP Method

testExecute() public method

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