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