PayPal\Test\Api\InvoiceTest::testSend PHP Method

testSend() public method

public testSend ( Invoice $obj, $mockApiContext )
$obj PayPal\Api\Invoice
    public function testSend($obj, $mockApiContext)
    {
        $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(true));
        $result = $obj->send($mockApiContext, $mockPayPalRestCall);
        $this->assertNotNull($result);
    }