function UrlAlterFunctionalTest::testGetQInitialized

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

File

modules/simpletest/tests/path.test, line 206

Class

UrlAlterFunctionalTest
Tests hook_url_alter functions.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.