mailgun-php/tests/Model/Domain/ConnectionResponseTest.php
2018-08-08 20:50:52 +01:00

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());
}
}