We actually want the user id not nickname in the test...
authorMark Felder <feld@FreeBSD.org>
Fri, 5 Apr 2019 17:11:19 +0000 (12:11 -0500)
committerMark Felder <feld@FreeBSD.org>
Fri, 5 Apr 2019 17:11:19 +0000 (12:11 -0500)
test/web/admin_api/admin_api_controller_test.exs

index 9c1cae6b76a4a0e396e34662fc2f7768d1430e4a..dd2fbfb150c69db82afc116b950697fdc52ea5c3 100644 (file)
@@ -89,8 +89,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
           "followed" => user.nickname
         })
 
-      user = User.get_by_nickname(user.id)
-      follower = User.get_by_nickname(follower.id)
+      user = User.get_by_id(user.id)
+      follower = User.get_by_id(follower.id)
 
       assert User.following?(follower, user)
     end
@@ -113,8 +113,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
           "followed" => user.nickname
         })
 
-      user = User.get_by_nickname(user.id)
-      follower = User.get_by_nickname(follower.id)
+      user = User.get_by_id(user.id)
+      follower = User.get_by_id(follower.id)
 
       refute User.following?(follower, user)
     end