| 7 path.test | UrlAlterFunctionalTest::testCurrentUrlRequestedPath() |
| 8 path.test | UrlAlterFunctionalTest::testCurrentUrlRequestedPath() |
Test current_path() and request_path().
File
- modules/
simpletest/ tests/ path.test, line 197 - Tests for path.inc.
Code
function testCurrentUrlRequestedPath() {
$this->drupalGet('url-alter-test/bar');
$this->assertRaw('request_path=url-alter-test/bar', t('request_path() returns the requested path.'));
$this->assertRaw('current_path=url-alter-test/foo', t('current_path() returns the internal path.'));
}
Login or register to post comments