function CoderUpgrade6xTest::testUpgrade6xLinkUrl in Coder 6.2
Same name and namespace in other branches
- 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xLinkUrl()
File
- tests/
coder_6x.test, line 125
Class
Code
function testUpgrade6xLinkUrl() {
$this
->assertCoderFail(' $link = l($text, $path, $attributes, NULL, NULL, FALSE, TRUE);');
$this
->assertCoderFail(' $link = l($text, $path, $attributes, NULL);');
$this
->assertCoderFail(' $link = l($image, $item[\'filepath\'], $link_attributes, NULL, NULL, FALSE, TRUE);');
$this
->assertCoderFail(' $link = l(t($display_vars[\'back_to_top\']), \'faq\', NULL, NULL);');
$this
->assertCoderPass(' $link = l(t($display_vars[\'back_to_top\']), \'faq\', array(\'fragment\' => \'\'));');
$this
->assertCoderPass(' $link = l($text, $path, $options);');
$this
->assertCoderPass(' $link = l($text, $path, array(\'absolute\' => TRUE));');
$this
->assertCoderFail(' $url = url($path, NULL, NULL, FALSE);');
$this
->assertCoderFail(' $url = url($path, $query, NULL);');
$this
->assertCoderFail(' $url = url($item[\'filepath\'], $query, NULL, FALSE);');
$this
->assertCoderFail(' $url = url(\'faq\', NULL, NULL);');
$this
->assertCoderPass(' $url = url(\'faq\', array(\'absolute\' => TRUE));');
$this
->assertCoderPass(' $url = url($path, $options);');
$this
->assertCoderPass(' $url = url($path, array(\'absolute\' => TRUE));');
}