Update asserts

This commit is contained in:
David Garcia 2019-08-10 00:16:55 +01:00
parent ed25b2e7e1
commit 0b2d69b7e9
No known key found for this signature in database
GPG Key ID: 5B833C2A14BD9A97

View File

@ -29,8 +29,15 @@ class ValidateResponseTest extends BaseModelTest
"risk": "low" "risk": "low"
} }
JSON; JSON;
$model = ValidateResponse::create(json_decode($json, true)); $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() public function testEmailValidation()