From 7408b7c210d84e5b8e86beb427ea20cdfb4442e4 Mon Sep 17 00:00:00 2001 From: mattab Date: Mon, 19 May 2014 10:36:57 +1200 Subject: [PATCH] Fix typo in test (period and ts_archived were reversed) --- tests/PHPUnit/Integration/PrivacyManagerTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/PHPUnit/Integration/PrivacyManagerTest.php b/tests/PHPUnit/Integration/PrivacyManagerTest.php index b32373630bb..464b189baff 100644 --- a/tests/PHPUnit/Integration/PrivacyManagerTest.php +++ b/tests/PHPUnit/Integration/PrivacyManagerTest.php @@ -743,19 +743,19 @@ protected static function _addReportData() $febDate1 = '2012-02-04'; $sql = "INSERT INTO %s (idarchive,name,idsite,date1,date2,period,ts_archived,value) - VALUES (10000,?,1,?,?,?,?,?)"; + VALUES (10000, ?, 1, ?, ?, ?, ?, ?)"; // one metric for jan & one for feb Db::query(sprintf($sql, Common::prefixTable($archiveTables['numeric'][0])), - array(self::GARBAGE_FIELD, $janDate1, $janDate1, $janDate1, 1, 100)); + array(self::GARBAGE_FIELD, $janDate1, $janDate1, 1, $janDate1, 100)); Db::query(sprintf($sql, Common::prefixTable($archiveTables['numeric'][1])), - array(self::GARBAGE_FIELD, $febDate1, $febDate1, $febDate1, 1, 200)); + array(self::GARBAGE_FIELD, $febDate1, $febDate1, 1, $febDate1, 200)); // add garbage reports Db::query(sprintf($sql, Common::prefixTable($archiveTables['blob'][0])), - array(self::GARBAGE_FIELD, $janDate1, $janDate1, $janDate1, 10, 'blobval')); + array(self::GARBAGE_FIELD, $janDate1, $janDate1, 10, $janDate1, 'blobval')); Db::query(sprintf($sql, Common::prefixTable($archiveTables['blob'][1])), - array(self::GARBAGE_FIELD, $febDate1, $febDate1, $febDate1, 20, 'blobval')); + array(self::GARBAGE_FIELD, $febDate1, $febDate1, 20, $febDate1, 'blobval')); } protected function _checkNoDataChanges()