diff options
Diffstat (limited to 'Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php')
-rw-r--r-- | Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php new file mode 100644 index 0000000..633fd62 --- /dev/null +++ b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php @@ -0,0 +1,25 @@ +<?php + +namespace SendGrid\Tests\Stats; + +use SendGrid\Tests\BaseTestClass; + +class ClientsStatsTest extends BaseTestClass +{ + public function testClientsStatsGetMethod() + { + $query_params = json_decode('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}'); + $request_headers = ["X-Mock: 200"]; + $response = self::$sg->client->clients()->stats()->get(null, $query_params, $request_headers); + $this->assertEquals(200, $response->statusCode()); + } + + public function testClientsClientTypeStatsGetMethod() + { + $query_params = json_decode('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}'); + $client_type = "test_url_param"; + $request_headers = ["X-Mock: 200"]; + $response = self::$sg->client->clients()->_($client_type)->stats()->get(null, $query_params, $request_headers); + $this->assertEquals(200, $response->statusCode()); + } +} |