Skip to content

Commit

Permalink
refs #4357 this should fix the core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Dec 3, 2013
1 parent e3082f7 commit 174bf3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PHPUnit/Core/TaskSchedulerTest.php
Expand Up @@ -284,8 +284,6 @@ public function testRunTasks($expectedTimetable, $expectedExecutedTasks, $timeta
// temporarily unload plugins
$plugins = \Piwik\Plugin\Manager::getInstance()->getLoadedPlugins();
$plugins = array_map(function ($p) { return $p->getPluginName(); }, $plugins);

\Piwik\Plugin\Manager::getInstance()->unloadPlugins();

// make sure the get tasks event returns our configured tasks
\Piwik\Piwik::addAction(TaskScheduler::GET_TASKS_EVENT, function(&$tasks) use($configuredTasks) {
Expand All @@ -298,6 +296,8 @@ public function testRunTasks($expectedTimetable, $expectedExecutedTasks, $timeta
// execute tasks
$executionResults = TaskScheduler::runTasks();

\Piwik\Plugin\Manager::getInstance()->unloadPlugins();

// assert methods are executed
$executedTasks = array();
foreach ($executionResults as $executionResult) {
Expand Down

0 comments on commit 174bf3b

Please sign in to comment.