mailgun-php/tests/Model/Domain/ConnectionResponseTest.php

28 lines
553 B
PHP
Raw Normal View History

2018-08-05 13:43:30 +03:00
<?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());
}
}