summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/notification_test.exs2
-rw-r--r--test/pleroma/web/common_api_test.exs8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/pleroma/notification_test.exs b/test/pleroma/notification_test.exs
index 4300827a6..e595c5c53 100644
--- a/test/pleroma/notification_test.exs
+++ b/test/pleroma/notification_test.exs
@@ -353,7 +353,7 @@ defmodule Pleroma.NotificationTest do
assert FollowingRelationship.following?(user, followed_user)
assert [notification] = Notification.for_user(followed_user)
- CommonAPI.unfollow(user, followed_user)
+ CommonAPI.unfollow(followed_user, user)
{:ok, _, _, _activity_dupe} = CommonAPI.follow(followed_user, user)
notification_id = notification.id
diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs
index 19efcb99c..c1b825d93 100644
--- a/test/pleroma/web/common_api_test.exs
+++ b/test/pleroma/web/common_api_test.exs
@@ -1434,7 +1434,7 @@ defmodule Pleroma.Web.CommonAPITest do
assert User.subscribed_to?(follower, followed)
- {:ok, follower} = CommonAPI.unfollow(follower, followed)
+ {:ok, follower} = CommonAPI.unfollow(followed, follower)
refute User.subscribed_to?(follower, followed)
end
@@ -1446,7 +1446,7 @@ defmodule Pleroma.Web.CommonAPITest do
assert User.endorses?(follower, followed)
- {:ok, follower} = CommonAPI.unfollow(follower, followed)
+ {:ok, follower} = CommonAPI.unfollow(followed, follower)
refute User.endorses?(follower, followed)
end
@@ -1459,7 +1459,7 @@ defmodule Pleroma.Web.CommonAPITest do
CommonAPI.follow(followed, follower)
assert User.get_follow_state(follower, followed) == :follow_pending
- assert {:ok, follower} = CommonAPI.unfollow(follower, followed)
+ assert {:ok, follower} = CommonAPI.unfollow(followed, follower)
assert User.get_follow_state(follower, followed) == nil
assert %{id: ^activity_id, data: %{"state" => "cancelled"}} =
@@ -1481,7 +1481,7 @@ defmodule Pleroma.Web.CommonAPITest do
CommonAPI.follow(followed, follower)
assert User.get_follow_state(follower, followed) == :follow_pending
- assert {:ok, follower} = CommonAPI.unfollow(follower, followed)
+ assert {:ok, follower} = CommonAPI.unfollow(followed, follower)
assert User.get_follow_state(follower, followed) == nil
assert %{id: ^activity_id, data: %{"state" => "cancelled"}} =