diff options
Diffstat (limited to 'site/app/tests/services/bin/parse_logs/count_downloads.test.php')
-rw-r--r-- | site/app/tests/services/bin/parse_logs/count_downloads.test.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/site/app/tests/services/bin/parse_logs/count_downloads.test.php b/site/app/tests/services/bin/parse_logs/count_downloads.test.php index 3def4ca..757f543 100644 --- a/site/app/tests/services/bin/parse_logs/count_downloads.test.php +++ b/site/app/tests/services/bin/parse_logs/count_downloads.test.php @@ -101,12 +101,12 @@ class CountDownloadsServiceTest extends UnitTestCase { $this->_resetCountData(); - $_total_total = mysql_fetch_array($this->cd->db->read("SELECT totaldownloads FROM addons WHERE id=7")); - $_collection_total = mysql_fetch_array($this->cd->db->read("SELECT downloads from collections WHERE id=1")); - $_addons_collection_total = mysql_fetch_array($this->cd->db->read("SELECT downloads from addons_collections WHERE addon_id=8 and collection_id=1")); + $_total_total = mysql_fetch_array($this->cd->db->query("SELECT totaldownloads FROM addons WHERE id=7")); + $_collection_total = mysql_fetch_array($this->cd->db->query("SELECT downloads from collections WHERE id=1")); + $_addons_collection_total = mysql_fetch_array($this->cd->db->query("SELECT downloads from addons_collections WHERE addon_id=8 and collection_id=1")); // We have to do this cheesy hack because there is no UNIQUE constraint on the addon_id and date columns. - $_result = $this->cd->db->read("SELECT count FROM download_counts WHERE addon_id=9 AND date='2008-11-25'"); + $_result = $this->cd->db->query("SELECT count FROM download_counts WHERE addon_id=9 AND date='2008-11-25'"); $_daily_total = 0; while ($row = mysql_fetch_array($_result)) { $_daily_total +=$row[0]; @@ -116,12 +116,12 @@ class CountDownloadsServiceTest extends UnitTestCase { $this->cd->logfileParsedCallback(); - $_new_total_total = mysql_fetch_array($this->cd->db->read("SELECT totaldownloads FROM addons WHERE id=7")); - $_new_collection_total = mysql_fetch_array($this->cd->db->read("SELECT downloads from collections WHERE id=1")); - $_new_addons_collection_total = mysql_fetch_array($this->cd->db->read("SELECT downloads from addons_collections WHERE addon_id=8 and collection_id=1")); + $_new_total_total = mysql_fetch_array($this->cd->db->query("SELECT totaldownloads FROM addons WHERE id=7")); + $_new_collection_total = mysql_fetch_array($this->cd->db->query("SELECT downloads from collections WHERE id=1")); + $_new_addons_collection_total = mysql_fetch_array($this->cd->db->query("SELECT downloads from addons_collections WHERE addon_id=8 and collection_id=1")); // We have to do this cheesy hack because there is no UNIQUE constraint on the addon_id and date columns. - $_result = $this->cd->db->read("SELECT count FROM download_counts WHERE addon_id=9 AND date='2008-11-25'"); + $_result = $this->cd->db->query("SELECT count FROM download_counts WHERE addon_id=9 AND date='2008-11-25'"); $_new_daily_total = 0; while ($row = mysql_fetch_array($_result)) { $_new_daily_total +=$row[0]; |