From 7b5b93efd242c2c3b7a57a6c6493b0de2cc9cdcd Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 20 Nov 2013 16:46:04 +0100 Subject: [PATCH] fixed email validator test break --- tests/unit/framework/validators/EmailValidatorTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()