File: DeleteSuppressedDestinationResponseTest.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 (24 lines) | stat: -rw-r--r-- 843 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
<?php

namespace AsyncAws\Ses\Tests\Unit\Result;

use AsyncAws\Core\Response;
use AsyncAws\Core\Test\Http\SimpleMockedResponse;
use AsyncAws\Core\Test\TestCase;
use AsyncAws\Ses\Result\DeleteSuppressedDestinationResponse;
use Psr\Log\NullLogger;
use Symfony\Component\HttpClient\MockHttpClient;

class DeleteSuppressedDestinationResponseTest extends TestCase
{
    public function testDeleteSuppressedDestinationResponse(): void
    {
        // see https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_DeleteSuppressedDestination.html
        $response = new SimpleMockedResponse();

        $client = new MockHttpClient($response);
        $result = new DeleteSuppressedDestinationResponse(new Response($client->request('DELETE', 'http://localhost'), $client, new NullLogger()));

        self::assertTrue($result->resolve());
    }
}