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

testCreate() public method

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