Postmark\Tests\PostmarkClientBounceTest::testClientCanGetDeliveryStatistics PHP Méthode

testClientCanGetDeliveryStatistics() public méthode

    function testClientCanGetDeliveryStatistics()
    {
        $tk = parent::$testKeys;
        $client = new PostmarkClient($tk->READ_SELENIUM_TEST_SERVER_TOKEN, $tk->TEST_TIMEOUT);
        $stats = $client->getDeliveryStatistics();
        $this->assertNotEmpty($stats, 'Stats from getDeliveryStatistics() should never be null or empty.');
        $this->assertGreaterThan(0, $stats->InactiveMails, "The inactive mail count should be greater than zero.");
    }