diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-12-22 05:32:06 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-12-22 05:32:06 +0300 |
commit | 55fe05468d86dc51ad653b5de9bb4b9ad027ba78 (patch) | |
tree | d6ae3b30d6bf651ef298f31d82337ac5fdf8a0f2 /tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php | |
parent | e71f461adfd03b40504243104944fe6b70c79980 (diff) |
fix tests as reports are invalidated now in some tests causing the site creation date to change causing archiving more dates
Diffstat (limited to 'tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php')
-rwxr-xr-x | tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php b/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php index f8d3ab4f15..06ee848eed 100755 --- a/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php +++ b/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php @@ -8,6 +8,8 @@ namespace Piwik\Tests\System; use Piwik\Common; +use Piwik\DataAccess\ArchiveInvalidator; +use Piwik\DataAccess\InvalidatedReports; use Piwik\Db; use Piwik\Tests\Framework\TestCase\SystemTestCase; use Piwik\Tests\Fixtures\TwoVisitsWithCustomVariables; @@ -88,9 +90,9 @@ class TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest extends SystemTest 'archive_blob_2009_12' => 28, // 7 metrics, // 2 Referrer metrics (Referrers_distinctSearchEngines/Referrers_distinctKeywords), - // 3 done flag (referrers, CustomVar, VisitsSummary), + // 6 done flag (referrers, CustomVar, VisitsSummary), 3 for period = 1 and 3 for period = 2 // X * 2 segments - 'archive_numeric_2009_12' => (6 + 2 + 3) * 2, + 'archive_numeric_2009_12' => (6 + 2 + 3 + 3) * 2, ); foreach ($tests as $table => $expectedRows) { $sql = "SELECT count(*) FROM " . Common::prefixTable($table); @@ -98,7 +100,8 @@ class TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest extends SystemTest if($expectedRows != $countBlobs) { $output = Db::get()->fetchAll("SELECT * FROM " . Common::prefixTable($table) . " ORDER BY name, idarchive ASC"); - var_export('This is debug output from ' . __CLASS__ . ' in case of an error: ' . $output); + var_export('This is debug output from ' . __CLASS__ . ' in case of an error: '); + var_export($output); } $this->assertEquals($expectedRows, $countBlobs, "$table: %s"); } |