Skip to content

Commit

Permalink
Fix typo in test (period and ts_archived were reversed)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed May 18, 2014
1 parent 40154bb commit 7408b7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/PHPUnit/Integration/PrivacyManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7408b7c

Please sign in to comment.