Add unit test for ProjectMetricJob

This commit is contained in:
Frederic Guillot
2016-07-23 20:30:06 -04:00
parent 8e6e335c9d
commit adb5023cfc
4 changed files with 55 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ namespace Kanboard\ServiceProvider;
use Kanboard\Job\CommentEventJob;
use Kanboard\Job\NotificationJob;
use Kanboard\Job\ProjectFileEventJob;
use Kanboard\Job\ProjectMetricJob;
use Kanboard\Job\SubtaskEventJob;
use Kanboard\Job\TaskEventJob;
use Kanboard\Job\TaskFileEventJob;
@@ -57,6 +58,10 @@ class JobProvider implements ServiceProviderInterface
return new NotificationJob($c);
});
$container['projectMetricJob'] = $container->factory(function ($c) {
return new ProjectMetricJob($c);
});
return $container;
}
}