NotificationController: Fix test.
authorlain <lain@soykaf.club>
Fri, 20 Mar 2020 14:00:28 +0000 (15:00 +0100)
committerlain <lain@soykaf.club>
Fri, 20 Mar 2020 14:00:28 +0000 (15:00 +0100)
test/web/mastodon_api/controllers/notification_controller_test.exs

index e407b8297aefc16600046f4c2e42ad520e294e4e..adbb78da69b5329cd1824d3b5513cf83a2c967d2 100644 (file)
@@ -310,7 +310,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationControllerTest do
 
     {:ok, mention_activity} = CommonAPI.post(other_user, %{"status" => "hey @#{user.nickname}"})
     {:ok, create_activity} = CommonAPI.post(user, %{"status" => "hey"})
-    {:ok, favorite_activity, _} = CommonAPI.favorite(create_activity.id, other_user)
+    {:ok, favorite_activity} = CommonAPI.favorite(other_user, create_activity.id)
     {:ok, reblog_activity, _} = CommonAPI.repeat(create_activity.id, other_user)
     {:ok, _, _, follow_activity} = CommonAPI.follow(other_user, user)