Add unit tests for comment handling

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-10-09 13:06:41 +02:00
parent 5edb95fc6b
commit da0cfdb1dc
3 changed files with 163 additions and 7 deletions

View File

@@ -23,7 +23,6 @@
namespace OCA\Deck\Activity;
use OCA\Deck\Db\CardMapper;
use OCA\Deck\Notification\NotificationHelper;
use OCP\Comments\CommentsEvent;
use \OCP\Comments\ICommentsEventHandler;
@@ -32,12 +31,11 @@ class CommentEventHandler implements ICommentsEventHandler {
/** @var ActivityManager */
private $activityManager;
/** @var CardMapper */
private $cardMapper;
/** @var NotificationHelper */
private $notificationHelper;
public function __construct(ActivityManager $activityManager, NotificationHelper $notificationHelper, CardMapper $cardMapper) {
$this->cardMapper = $cardMapper;
public function __construct(ActivityManager $activityManager, NotificationHelper $notificationHelper) {
$this->notificationHelper = $notificationHelper;
$this->activityManager = $activityManager;
}