function CommonURLUnitTest::testLActiveClass
File
-
modules/
simpletest/ tests/ common.test, line 119
Class
- CommonURLUnitTest
- Tests for URL generation functions.
Code
function testLActiveClass() {
$link = l($this->randomName(), $_GET['q']);
$this->assertTrue($this->hasClass($link, 'active'), format_string('Class @class is present on link to the current page', array(
'@class' => 'active',
)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.