1 path.test UrlAlterFunctionalTest::testCurrentUrlRequestedPath()

Test current_path() and request_path().

File

core/modules/simpletest/tests/path.test, line 170
Tests for path.inc.

Class

UrlAlterFunctionalTest
Tests hook_url_alter functions.

Code

function testCurrentUrlRequestedPath() {
  $this->backdropGet('url-alter-test/bar');
  $this->assertRaw('request_path=url-alter-test/bar', 'request_path() returns the requested path.');
  $this->assertRaw('current_path=url-alter-test/foo', 'current_path() returns the internal path.');
}