From 0b2d69b7e94f4d643098ddbd2064c1691af1cb19 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Sat, 10 Aug 2019 00:16:55 +0100 Subject: [PATCH] Update asserts --- tests/Model/EmailValidation/ValidateResponseTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Model/EmailValidation/ValidateResponseTest.php b/tests/Model/EmailValidation/ValidateResponseTest.php index 413ece5..e80f07b 100644 --- a/tests/Model/EmailValidation/ValidateResponseTest.php +++ b/tests/Model/EmailValidation/ValidateResponseTest.php @@ -29,8 +29,15 @@ class ValidateResponseTest extends BaseModelTest "risk": "low" } JSON; + $model = ValidateResponse::create(json_decode($json, true)); - $this->assertTrue($model->isMailboxVerification()); + + $this->assertEquals('foo@mailgun.net', $model->getAddress()); + $this->assertFalse($model->isDisposableAddress()); + $this->assertTrue($model->isRoleAddress()); + $this->assertEquals([], $model->getReason()); + $this->assertEquals('deliverable', $model->getResult()); + $this->assertEquals('low', $model->getRisk()); } public function testEmailValidation()