PayPal\Test\Functional\Api\WebhookFunctionalTest::testGetSubscribedEventTypes PHP Метод

testGetSubscribedEventTypes() публичный Метод

public testGetSubscribedEventTypes ( $webhook ) : WebhookEventTypeList
$webhook Webhook
Результат PayPal\Api\WebhookEventTypeList
    public function testGetSubscribedEventTypes($webhook)
    {
        $result = WebhookEventType::subscribedEventTypes($webhook->getId(), $this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
        $this->assertEquals(2, sizeof($result->getEventTypes()));
        return $result;
    }