From 6fc5b1e93828d0c451026ade233e31cfe31e1cba Mon Sep 17 00:00:00 2001 From: David Garcia Date: Thu, 1 Feb 2018 23:48:07 +0000 Subject: [PATCH] Test Parts model --- tests/Model/EmailValidation/PartsTest.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/Model/EmailValidation/PartsTest.php diff --git a/tests/Model/EmailValidation/PartsTest.php b/tests/Model/EmailValidation/PartsTest.php new file mode 100644 index 0000000..5acbc9d --- /dev/null +++ b/tests/Model/EmailValidation/PartsTest.php @@ -0,0 +1,23 @@ + ' 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()); + } +}