public function LinkSanitizeTest::testRelativeHash in Link 7
Test that relative hash URLs are returned as is.
File
- tests/
LinkSanitizeTest.test, line 65
Class
- LinkSanitizeTest
- Test for _link_sanitize().
Code
public function testRelativeHash() {
$item['url'] = '#hash-only';
list($field, $instance, $entity) = $this
->generateParams();
_link_sanitize($item, NULL, $field, $instance, $entity);
$this
->assertEqual('#hash-only', $item['url']);
}