diff --git a/tests/unit/framework/validators/EmailValidatorTest.php b/tests/unit/framework/validators/EmailValidatorTest.php index 462b980..71d1666 100644 --- a/tests/unit/framework/validators/EmailValidatorTest.php +++ b/tests/unit/framework/validators/EmailValidatorTest.php @@ -78,10 +78,14 @@ class EmailValidatorTest extends TestCase public function testValidateValueMx() { $validator = new EmailValidator(); - $validator->checkMX = true; + $validator->checkDNS = true; $this->assertTrue($validator->validateValue('5011@gmail.com')); - $this->assertFalse($validator->validateValue('test@example.com')); + + $validator->checkDNS = false; + $this->assertTrue($validator->validateValue('test@nonexistingsubdomain.example.com')); + $validator->checkDNS = true; + $this->assertFalse($validator->validateValue('test@nonexistingsubdomain.example.com')); } public function testValidateAttribute()