芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/srmklive/paypal/tests/Unit/Adapter/PaymentCapturesTest.php
mockGetCapturedPaymentDetailsResponse(); $expectedMethod = 'showCapturedPaymentDetails'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('2GG279541U471931P')); } /** @test */ public function it_can_refund_a_captured_payment() { $expectedResponse = $this->mockRefundCapturedPaymentResponse(); $expectedMethod = 'refundCapturedPayment'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}( '2GG279541U471931P', 'INVOICE-123', 10.99, 'Defective product' )); } }