1.20.x link.validate.test LinkValidateUnitTest::testValidateFrontLink()

File

modules/link/tests/link.validate.test, line 146
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 testValidateFrontLink() {
  $valid = link_validate_url('<front>');
  $this->assertEqual(LINK_FRONT, $valid, 'Make sure that front link is verfied and identified');
}