Test Parts model

This commit is contained in:
David Garcia 2018-02-01 23:48:07 +00:00 committed by David Garcia
parent 8cb9a0e48a
commit 6fc5b1e938

View 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());
}
}