diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-10-17 23:57:43 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-10-17 23:57:43 -0700 |
commit | 27ecff4aaf96aed4ecab8f05d41476c8f42975f4 (patch) | |
tree | 6ed26fb167495fe12ac522dbe5fdfc10ecfc359a /modules/statistics | |
parent | 88e9b836125a529b3a05f535733d20e230366783 (diff) | |
download | brdo-27ecff4aaf96aed4ecab8f05d41476c8f42975f4.tar.gz brdo-27ecff4aaf96aed4ecab8f05d41476c8f42975f4.tar.bz2 |
Issue #1346772 by xjm, scor: Fixed StatisticsLoggingTestCase->testLogging() fails with clean URLs in some environments.
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.test | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/statistics/statistics.test b/modules/statistics/statistics.test index 2aff683af..d2155da6c 100644 --- a/modules/statistics/statistics.test +++ b/modules/statistics/statistics.test @@ -129,8 +129,13 @@ class StatisticsLoggingTestCase extends DrupalWebTestCase { $this->assertTrue(is_array($log) && count($log) == 7, 'Page request was logged.'); $this->assertEqual(array_intersect_key($log[6], $expected), $expected); - // Create a path longer than 255 characters. - $long_path = $this->randomName(256); + // Create a path longer than 255 characters. Drupal's .htaccess file + // instructs Apache to test paths against the file system before routing to + // index.php. Many file systems restrict file names to 255 characters + // (http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits), and + // Apache returns a 403 when testing longer file names, but the total path + // length is not restricted. + $long_path = $this->randomName(127) . '/' . $this->randomName(128); // Test that the long path is properly truncated when logged. $this->drupalGet($long_path); |