namespace wcf\system\user\notification\event;
-use wcf\data\article\category\ArticleCategory;
use wcf\data\user\UserProfile;
use wcf\system\cache\runtime\CommentRuntimeCache;
use wcf\system\cache\runtime\UserProfileRuntimeCache;
use wcf\system\cache\runtime\ViewableArticleContentRuntimeCache;
-use wcf\system\comment\CommentHandler;
use wcf\system\email\Email;
use wcf\system\user\notification\object\CommentResponseUserNotificationObject;
ITestableUserNotificationEvent
{
use TTestableCommentResponseUserNotificationEvent;
- use TTestableArticleUserNotificationEvent;
+ use TTestableArticleCommentUserNotificationEvent;
use TTestableCategorizedUserNotificationEvent;
/**
{
return \sha1($this->eventID . '-' . $this->notification->objectID);
}
-
- /**
- * @inheritDoc
- */
- protected static function getTestCommentObjectData(UserProfile $recipient, UserProfile $author)
- {
- return [
- 'objectID' => self::getTestArticle(self::createTestCategory(ArticleCategory::OBJECT_TYPE_NAME), $author)
- ->getArticleContent()
- ->articleContentID,
- 'objectTypeID' => CommentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.articleComment'),
- ];
- }
}
namespace wcf\system\user\notification\event;
-use wcf\data\article\category\ArticleCategory;
-use wcf\data\user\UserProfile;
use wcf\system\cache\runtime\CommentRuntimeCache;
use wcf\system\cache\runtime\ViewableArticleContentRuntimeCache;
-use wcf\system\comment\CommentHandler;
use wcf\system\email\Email;
use wcf\system\user\notification\object\CommentResponseUserNotificationObject;
ITestableUserNotificationEvent
{
use TTestableCommentResponseUserNotificationEvent;
- use TTestableArticleUserNotificationEvent;
+ use TTestableArticleCommentUserNotificationEvent;
use TTestableCategorizedUserNotificationEvent;
/**
{
return \sha1($this->eventID . '-' . $this->notification->objectID);
}
-
- /**
- * @inheritDoc
- */
- protected static function getTestCommentObjectData(UserProfile $recipient, UserProfile $author)
- {
- return [
- 'objectID' => self::getTestArticle(self::createTestCategory(ArticleCategory::OBJECT_TYPE_NAME), $author)
- ->getArticleContent()
- ->articleContentID,
- 'objectTypeID' => CommentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.articleComment'),
- ];
- }
}
namespace wcf\system\user\notification\event;
-use wcf\data\article\category\ArticleCategory;
-use wcf\data\user\UserProfile;
use wcf\system\cache\runtime\ViewableArticleContentRuntimeCache;
-use wcf\system\comment\CommentHandler;
use wcf\system\user\notification\object\CommentUserNotificationObject;
/**
ITestableUserNotificationEvent
{
use TTestableCommentUserNotificationEvent;
- use TTestableArticleUserNotificationEvent;
+ use TTestableArticleCommentUserNotificationEvent;
use TTestableCategorizedUserNotificationEvent;
/**
{
return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->objectID);
}
-
- /**
- * @inheritDoc
- */
- protected static function getTestCommentObjectData(UserProfile $recipient, UserProfile $author)
- {
- return [
- 'objectID' => self::getTestArticle(self::createTestCategory(ArticleCategory::OBJECT_TYPE_NAME), $author)
- ->getArticleContent()
- ->articleContentID,
- 'objectTypeID' => CommentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.articleComment'),
- ];
- }
}