mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-25 14:26:04 +03:00
Test Parts model
This commit is contained in:
parent
8cb9a0e48a
commit
6fc5b1e938
23
tests/Model/EmailValidation/PartsTest.php
Normal file
23
tests/Model/EmailValidation/PartsTest.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Mailgun\Tests\Model\EmailValidation;
|
||||
|
||||
use Mailgun\Model\EmailValidation\Parts;
|
||||
|
||||
class PartsTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user