芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/srmklive/paypal/tests/Unit/Adapter/InvoicesSearchTest.php
mockSearchInvoicesResponse(); $expectedMethod = 'searchInvoices'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}(1, 1, true)); } /** @test */ public function it_can_search_invoices_with_custom_filters() { $expectedResponse = $this->mockSearchInvoicesResponse(); $expectedMethod = 'searchInvoices'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->addInvoiceFilterByRecipientEmail('bill-me@example.com') ->addInvoiceFilterByCurrencyCode('USD') ->addInvoiceFilterByAmountRange(30, 50) ->{$expectedMethod}(1, 1, true)); } }