File: GetSuppressedDestinationRequestTest.php

package info (click to toggle)
php-async-aws-ses 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: php: 1,658; makefile: 28
file content (25 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace AsyncAws\Ses\Tests\Unit\Input;

use AsyncAws\Core\Test\TestCase;
use AsyncAws\Ses\Input\GetSuppressedDestinationRequest;

class GetSuppressedDestinationRequestTest extends TestCase
{
    public function testRequest(): void
    {
        $input = new GetSuppressedDestinationRequest([
            'EmailAddress' => 'test@example.org',
        ]);

        // see https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_GetSuppressedDestination.html
        $expected = '
            GET /v2/email/suppression/addresses/test%40example.org HTTP/1.1
            Content-Type: application/json
            Accept: application/json
        ';

        self::assertRequestEqualsHttpRequest($expected, $input->request());
    }
}