From 598e739208de28182f3329a2c23511f5c27489e5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 29 Sep 2009 15:31:17 +0000 Subject: - Patch #578520 by sun | c960657, mfb, Dries, catch, mattyoung: make in url() only accept an array. Another nice API clean-up! --- modules/system/system.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.test') diff --git a/modules/system/system.test b/modules/system/system.test index 6d1e4d142..3738cd2f5 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -379,12 +379,12 @@ class CronRunTestCase extends DrupalWebTestCase { // Run cron anonymously with a random cron key. $key = $this->randomName(16); - $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . $key)); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => $key))); $this->assertResponse(403); // Run cron anonymously with the valid cron key. $key = variable_get('cron_key', 'drupal'); - $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . $key)); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => $key))); $this->assertResponse(200); // Execute cron directly. -- cgit v1.2.3