AmazonSesClientServiceTest.php in Amazon SES 2.0.x
File
tests/src/Kernel/AmazonSesClientServiceTest.php
View source
<?php
namespace Drupal\Tests\amazon_ses\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Aws\Ses\SesClient;
class AmazonSesClientServiceTest extends KernelTestBase {
protected static $modules = [
'amazon_ses',
'aws_secrets_manager',
];
protected function setUp() : void {
parent::setUp();
$this
->installConfig([
'aws_secrets_manager',
]);
}
public function testCreateInstance() {
$client = $this->container
->get('amazon_ses.client');
$this
->assertInstanceOf(SesClient::class, $client);
}
}