use commonAPI in tests
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>
Sun, 18 Aug 2019 21:54:40 +0000 (22:54 +0100)
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>
Sun, 18 Aug 2019 21:54:40 +0000 (22:54 +0100)
test/user_test.exs

index 23011bdacf71a534c55fd9f4dfdb327805590fc4..96f2a252d55bd36fb733be795e5abe43c8ad5654 100644 (file)
@@ -94,7 +94,7 @@ defmodule Pleroma.UserTest do
     followed = insert(:user, %{info: %{locked: true}})
     follower = insert(:user)
 
-    Pleroma.Web.TwitterAPI.TwitterAPI.follow(follower, %{"user_id" => followed.id})
+    CommonAPI.follow(follower, followed)
     assert {:ok, [_activity]} = User.get_follow_requests(followed)
 
     {:ok, _follower} = User.block(followed, follower)