mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-23 21:16:02 +03:00
34 lines
834 B
PHP
34 lines
834 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Copyright (C) 2013 Mailgun
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
namespace Mailgun\Tests\Model\EmailValidation;
|
|
|
|
use Mailgun\Model\EmailValidation\Parts;
|
|
use Mailgun\Tests\Model\BaseModelTest;
|
|
|
|
class PartsTest extends BaseModelTest
|
|
{
|
|
public function testPartsConstructor()
|
|
{
|
|
$data = [
|
|
'display_name' => ' Display name',
|
|
'domain' => 'Domain',
|
|
'local_part' => 'Local Part',
|
|
];
|
|
|
|
$parts = Parts::create($data);
|
|
|
|
$this->assertEquals($data['display_name'], $parts->getDisplayName());
|
|
$this->assertEquals($data['domain'], $parts->getDomain());
|
|
$this->assertEquals($data['local_part'], $parts->getLocalPart());
|
|
}
|
|
}
|