1 link.validate.test LinkValidateUnitTest::testValidateEmailLinkBad()

File

core/modules/link/tests/link.validate.test, line 157
Tests that exercise the validation functions in the link module.

Class

LinkValidateUnitTest
A series of tests of links, only going against the link_validate_url function in link.module.

Code

function testValidateEmailLinkBad() {
  $valid = link_validate_url(':bob@example.com');
  $this->assertEqual(FALSE, $valid, 'Make sure just a bad address is correctly failed');
}