diff options
author | diosmosis <benaka@piwik.pro> | 2015-10-08 19:49:47 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-12 21:05:37 +0300 |
commit | fdd3928465a5641d287d3e74f628d4a4ea1f784f (patch) | |
tree | d1cff83f2b8710303cfdb3e6d651ce8dc917bd05 /plugins/SitesManager | |
parent | 25de7742eceb032f1e3b9d60098215010d3825fa (diff) |
Re-engineer ArchiveInvalidationTest now that invalidation cascades up.
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/tests/Integration/SitesManagerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/SitesManager/tests/Integration/SitesManagerTest.php b/plugins/SitesManager/tests/Integration/SitesManagerTest.php index b71695ae5b..15345fc231 100644 --- a/plugins/SitesManager/tests/Integration/SitesManagerTest.php +++ b/plugins/SitesManager/tests/Integration/SitesManagerTest.php @@ -11,6 +11,7 @@ namespace Piwik\Plugins\SitesManager\tests\Integration; use Piwik\Access; use Piwik\Cache; use Piwik\Archive\ArchiveInvalidator; +use Piwik\Container\StaticContainer; use Piwik\Date; use Piwik\Plugins\SitesManager\SitesManager; use Piwik\Tests\Framework\Fixture; @@ -54,7 +55,7 @@ class SitesManagerTest extends IntegrationTestCase public function test_onSiteDeleted_shouldRemoveRememberedArchiveReports() { - $archive = new ArchiveInvalidator(); + $archive = StaticContainer::get('Piwik\Archive\ArchiveInvalidator'); $archive->rememberToInvalidateArchivedReportsLater($this->siteId, Date::factory('2014-04-05')); $archive->rememberToInvalidateArchivedReportsLater($this->siteId, Date::factory('2014-04-06')); $archive->rememberToInvalidateArchivedReportsLater(4949, Date::factory('2014-04-05')); |