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

25 lines
523 B
PHP

<?php
declare(strict_types=1);
namespace Mailgun\Tests\Model\Domain;
use Mailgun\Model\Domain\ConnectionResponse;
use Mailgun\Model\Domain\CreateCredentialResponse;
use Mailgun\Tests\Model\BaseModelTest;
class CreateCredentialResponseTest extends BaseModelTest
{
public function testCreate()
{
$json =
<<<JSON
{
"message": "Created 1 credentials pair(s)"
}
JSON;
$model = CreateCredentialResponse::create(json_decode($json, true));
$this->assertNotEmpty($model->getMessage());
}
}