芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/srmklive/paypal/tests/Unit/Adapter/ReportingTest.php
mockListTransactionsResponse(); $expectedMethod = 'listTransactions'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $filters = [ 'start_date' => Carbon::now()->toIso8601String(), 'end_date' => Carbon::now()->subDays(30)->toIso8601String(), ]; $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}($filters)); } /** @test */ public function it_can_list_balances() { $expectedResponse = $this->mockListBalancesResponse(); $expectedMethod = 'listBalances'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('2016-10-15T06:07:00-0700')); } }