mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding skip for validation test, for DNS servers that reply for non-existant domains.
This commit is contained in:
parent
76019513e1
commit
6b616b7171
1 changed files with 4 additions and 0 deletions
|
@ -1584,6 +1584,10 @@ class ValidationTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testEmailDeep() {
|
||||
$found = gethostbynamel('example.abcd');
|
||||
if ($this->skipIf($found, 'Your DNS service responds for non-existant domains, skipping deep email checks. %s')) {
|
||||
return;
|
||||
}
|
||||
$this->assertTrue(Validation::email('abc.efg@cakephp.org', true));
|
||||
$this->assertFalse(Validation::email('abc.efg@caphpkeinvalid.com', true));
|
||||
$this->assertFalse(Validation::email('abc@example.abcd', true));
|
||||
|
|
Loading…
Reference in a new issue