From c1b5616cc236c7a65569e1fad039e62e64bfab6a Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 24 Nov 2011 13:41:11 -0800 Subject: Issue #1329914 by xjm, msonnabaum: Fixed Ensure ['q'] is set before calling drupal_normal_path(). --- modules/simpletest/tests/path.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/simpletest/tests/path.test') diff --git a/modules/simpletest/tests/path.test b/modules/simpletest/tests/path.test index 4998ffa38..8b3e6dc48 100644 --- a/modules/simpletest/tests/path.test +++ b/modules/simpletest/tests/path.test @@ -200,6 +200,14 @@ class UrlAlterFunctionalTest extends DrupalWebTestCase { $this->assertRaw('current_path=url-alter-test/foo', t('current_path() returns the internal path.')); } + /** + * Tests that $_GET['q'] is initialized when the request path is empty. + */ + 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."); + } + /** * Assert that an outbound path is altered to an expected value. * -- cgit v1.2.3