function CoderReviewUpgrade6xTest::testUpgrade6xLinkUrl in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xLinkUrl()
???
File
- coder_review/
tests/ coder_review_6x.test, line 153
Class
Code
function testUpgrade6xLinkUrl() {
$this
->assertCoderReviewFail(' $link = l($text, $path, $attributes, NULL, NULL, FALSE, TRUE);');
$this
->assertCoderReviewFail(' $link = l($text, $path, $attributes, NULL);');
$this
->assertCoderReviewFail(' $link = l($image, $item[\'filepath\'], $link_attributes, NULL, NULL, FALSE, TRUE);');
$this
->assertCoderReviewFail(' $link = l(t($display_vars[\'back_to_top\']), \'faq\', NULL, NULL);');
$this
->assertCoderReviewPass(' $link = l(t($display_vars[\'back_to_top\']), \'faq\', array(\'fragment\' => \'\'));');
$this
->assertCoderReviewPass(' $link = l($text, $path, $options);');
$this
->assertCoderReviewPass(' $link = l($text, $path, array(\'absolute\' => TRUE));');
$this
->assertCoderReviewFail(' $url = url($path, NULL, NULL, FALSE);');
$this
->assertCoderReviewFail(' $url = url($path, $query, NULL);');
$this
->assertCoderReviewFail(' $url = url($item[\'filepath\'], $query, NULL, FALSE);');
$this
->assertCoderReviewFail(' $url = url(\'faq\', NULL, NULL);');
$this
->assertCoderReviewPass(' $url = url(\'faq\', array(\'absolute\' => TRUE));');
$this
->assertCoderReviewPass(' $url = url($path, $options);');
$this
->assertCoderReviewPass(' $url = url($path, array(\'absolute\' => TRUE));');
}