diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-13 20:29:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-13 20:29:42 +0000 |
commit | f7e61d77e96b1f67b1ea58273a0cfc8020715f65 (patch) | |
tree | 3ca250e31d923a2943f1878788d9f3aa41d40b4d /modules/system/system.test | |
parent | 0ff80347a0268b630aa078be3dee3e16d34bc17f (diff) | |
download | brdo-f7e61d77e96b1f67b1ea58273a0cfc8020715f65.tar.gz brdo-f7e61d77e96b1f67b1ea58273a0cfc8020715f65.tar.bz2 |
- Patch #296321 by pwolanin, swentel: link to cron.php broken when clean URLs are disabled.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r-- | modules/system/system.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/system/system.test b/modules/system/system.test index 8934316ac..2aa7c9a7e 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -234,18 +234,19 @@ class CronRunTestCase extends DrupalWebTestCase { * Test cron runs. */ function testCronRun() { + global $base_url; // Run cron anonymously without any cron key. - $this->drupalGet('cron.php'); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE)); $this->assertResponse(403); // Run cron anonymously with a random cron key. $key = $this->randomName(16); - $this->drupalGet('cron.php', array('query' => 'cron_key=' . $key)); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . $key)); $this->assertResponse(403); // Run cron anonymously with the valid cron key. $key = variable_get('cron_key', 'drupal'); - $this->drupalGet('cron.php', array('query' => 'cron_key=' . $key)); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . $key)); $this->assertResponse(200); // Execute cron directly. |