public static function setUpBeforeClass() { self::$is_check_timeline_view_cache = is_enabled('timeline') && \Config::get('timeline.articles.cache.is_use'); self::$is_check_notice_cache = is_enabled('notice') && \Config::get('notice.cache.unreadCount.isEnabled'); self::$member = \Model_Member::check_authority(self::$member_id); self::$album_image = \Album\Site_Test::setup_album_image(self::$member_id, null, 1); self::$album = Model_Album::find(self::$album_image->album_id); self::$album_image_comment = \Site_Test::save_comment('album_image', self::$album_image->id, self::$member_id); Model_AlbumImageLike::change_registered_status4unique_key(array('album_image_id' => self::$album_image->id, 'member_id' => 2)); Model_AlbumImageCommentLike::change_registered_status4unique_key(array('album_image_comment_id' => self::$album_image_comment->id, 'member_id' => 3)); \Site_Test::save_comment('album_image', self::$album_image->id, 2); \Site_Test::save_comment('album_image', self::$album_image->id, 3); }
private static function execute_like($album_image_comment_id, $member_id) { return (bool) Model_AlbumImageCommentLike::change_registered_status4unique_key(array('album_image_comment_id' => $album_image_comment_id, 'member_id' => $member_id)); }