summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/DevicesStatsTest.php
blob: 08b6131006af499319830e0de31b3d4e6c57888c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace SendGrid\Tests\Stats;

use SendGrid\Tests\BaseTestClass;

class DevicesStatsTest extends BaseTestClass
{
    public function testDevicesStatsGetMethod()
    {
        $query_params = json_decode('{"aggregated_by": "day", "limit": 1, "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": 1}');
        $request_headers = ["X-Mock: 200"];
        $response = self::$sg->client->devices()->stats()->get(null, $query_params, $request_headers);
        $this->assertEquals(200, $response->statusCode());
    }
}