From: Sadposter Date: Sun, 18 Aug 2019 21:54:40 +0000 (+0100) Subject: use commonAPI in tests X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=58c1391c4dd7e916b54e49b0b17ea1f01cac02f3;p=akkoma use commonAPI in tests --- diff --git a/test/user_test.exs b/test/user_test.exs index 23011bdac..96f2a252d 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -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)