芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/srmklive/paypal/tests/Unit/Adapter/DisputeActionsTest.php
mockAcceptDisputesClaimResponse(); $expectedMethod = 'acceptDisputeClaim'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('PP-D-27803', 'Full refund to the customer.')); } /** @test */ public function it_can_accept_dispute_offer_resolution() { $expectedResponse = $this->mockAcceptDisputesOfferResolutionResponse(); $expectedMethod = 'acceptDisputeOfferResolution'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('PP-000-000-651-454', 'I am ok with the refund offered.')); } /** @test */ public function it_can_acknowledge_item_is_returned_for_raised_dispute() { $expectedResponse = $this->mockAcknowledgeItemReturnedResponse(); $expectedMethod = 'acknowledgeItemReturned'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('PP-000-000-651-454', 'I have received the item back.', 'ITEM_RECEIVED')); } }