You are here

public function LinkFieldValidateTest::testLinkInternalUrl in Link 7

Validate that an internal url would be accepted.

File

tests/LinkFieldValidateTest.test, line 311
Link field Validation Tests.

Class

LinkFieldValidateTest
Link field Validation Tests.

Code

public function testLinkInternalUrl() {

  // Create the content first.
  $node = $this
    ->drupalCreateNode();
  $link = 'node/' . $node->nid;
  $this
    ->linkTestValidateUrl($link);
  $type = link_url_type($link);
  $this
    ->assertEqual(LINK_INTERNAL, $type, 'Test ' . $link . ' is an internal link.');
}