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

File

core/modules/link/tests/link.validate.test, line 152
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 testValidateEmailLink() {
  $valid = link_validate_url('mailto:bob@example.com');
  $this->assertEqual(LINK_EMAIL, $valid, "Make sure a basic mailto is verified and identified");
}