芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/srmklive/paypal/tests/Unit/Adapter/WebHooksEventsTest.php
mockListWebHookEventsTypesResponse(); $expectedMethod = 'listEventTypes'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}()); } /** @test */ public function it_can_list_web_hooks_events() { $expectedResponse = $this->mockWebHookEventsListResponse(); $expectedMethod = 'listEvents'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}()); } /** @test */ public function it_can_show_details_for_a_web_hooks_event() { $expectedResponse = $this->mockGetWebHookEventResponse(); $expectedMethod = 'showEventDetails'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('8PT597110X687430LKGECATA')); } /** @test */ public function it_can_resend_notification_for_a_web_hooks_event() { $expectedResponse = $this->mockResendWebHookEventNotificationResponse(); $expectedParams = ['12334456']; $expectedMethod = 'resendEventNotification'; $mockClient = $this->mock_client($expectedResponse, $expectedMethod, true); $mockClient->setApiCredentials($this->getMockCredentials()); $mockClient->getAccessToken(); $this->assertEquals($expectedResponse, $mockClient->{$expectedMethod}('8PT597110X687430LKGECATA', $expectedParams)); } }