mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 04:26:02 +03:00
Update asserts
This commit is contained in:
parent
ed25b2e7e1
commit
0b2d69b7e9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user