You are here

function LinkValidateUrlLight::testValidateInternalLinkToFile in Link 6.2

File

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

Class

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

Code

function testValidateInternalLinkToFile() {
  $valid = link_validate_url('files/test.jpg');
  $this
    ->assertEqual(LINK_INTERNAL, $valid, 'Test files/test.jpg internal link.');
}