mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-26 14:56:03 +03:00
25 lines
523 B
PHP
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());
|
|
}
|
|
}
|