You are here

public function LinkSanitizeTest::testRelativeQuery in Link 7

Test that relative query URLs are returned as is.

File

tests/LinkSanitizeTest.test, line 89

Class

LinkSanitizeTest
Test for _link_sanitize().

Code

public function testRelativeQuery() {
  $item['url'] = '?query=only';
  list($field, $instance, $entity) = $this
    ->generateParams();
  _link_sanitize($item, NULL, $field, $instance, $entity);
  $this
    ->assertEqual('?query=only', $item['url']);
}