PayPal\Test\Api\PaymentTest::testList PHP Méthode

testList() public méthode

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