mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2025-01-14 08:20:32 +01:00
We actually want the user id not nickname in the test...
This commit is contained in:
parent
c746087f57
commit
fac76bfa35
@ -89,8 +89,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
"followed" => user.nickname
|
"followed" => user.nickname
|
||||||
})
|
})
|
||||||
|
|
||||||
user = User.get_by_nickname(user.id)
|
user = User.get_by_id(user.id)
|
||||||
follower = User.get_by_nickname(follower.id)
|
follower = User.get_by_id(follower.id)
|
||||||
|
|
||||||
assert User.following?(follower, user)
|
assert User.following?(follower, user)
|
||||||
end
|
end
|
||||||
@ -113,8 +113,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||||||
"followed" => user.nickname
|
"followed" => user.nickname
|
||||||
})
|
})
|
||||||
|
|
||||||
user = User.get_by_nickname(user.id)
|
user = User.get_by_id(user.id)
|
||||||
follower = User.get_by_nickname(follower.id)
|
follower = User.get_by_id(follower.id)
|
||||||
|
|
||||||
refute User.following?(follower, user)
|
refute User.following?(follower, user)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user