mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 20:46:03 +03:00
28 lines
553 B
PHP
28 lines
553 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Mailgun\Tests\Model\Domain;
|
|
|
|
use Mailgun\Model\Domain\ConnectionResponse;
|
|
use Mailgun\Tests\Model\BaseModelTest;
|
|
|
|
class ConnectionResponseTest extends BaseModelTest
|
|
{
|
|
public function testCreate()
|
|
{
|
|
$json =
|
|
<<<JSON
|
|
{
|
|
"connection": {
|
|
"require_tls": false,
|
|
"skip_verification": false
|
|
}
|
|
}
|
|
JSON;
|
|
$model = ConnectionResponse::create(json_decode($json, true));
|
|
$this->assertFalse($model->getRequireTLS());
|
|
$this->assertFalse($model->getSkipVerification());
|
|
}
|
|
}
|