1 link.sanitize.test | public LinkSanitizeTest::testQueryString() |
Test that query string URLs are returned as is.
File
- core/
modules/ link/ tests/ link.sanitize.test, line 72 - Contains simpletests for sanitization.
Class
- LinkSanitizeTest
- Test for _link_sanitize().
Code
public function testQueryString() {
$item['url'] = '?query=only';
list($field, $instance, $entity) = $this->generateParams();
_link_sanitize($item, 0, $field, $instance, $entity);
$this->assertEqual('?query=only', $item['url']);
}