1 path.test UrlAlterFunctionalTest::testGetQInitialized()

Tests that $_GET['q'] is initialized when the request path is empty.

File

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

Class

UrlAlterFunctionalTest
Tests hook_url_alter functions.

Code

function testGetQInitialized() {
  $this->backdropGet('');
  $this->assertText("\$_GET['q'] is non-empty with an empty request path.", "\$_GET['q'] is initialized with an empty request path.");
}