芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/srmklive/paypal/tests/Unit/Adapter/TrackersTest.php
mockGetTrackingDetailsResponse(); $expectedParams = '8MC585209K746392H-443844607820'; $expectedMethod = 'showTrackingDetails'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}($expectedParams)); } /** @test */ public function it_can_update_tracking_details_for_tracking_id() { $expectedResponse = ''; $expectedData = $this->mockUpdateTrackingDetailsParams(); $expectedParams = '8MC585209K746392H-443844607820'; $expectedMethod = 'updateTrackingDetails'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}($expectedParams, $expectedData)); } /** @test */ public function it_can_create_tracking_in_batches() { $expectedResponse = $this->mockCreateTrackinginBatchesResponse(); $expectedParams = $this->mockCreateTrackinginBatchesParams(); $expectedMethod = 'addBatchTracking'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}($expectedParams)); } }