mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-25 09:31:46 +01:00
Fixes IslandTeamKickCommand test (commands.island.team.kick.cannot-kick)
This commit is contained in:
parent
0f6852dac6
commit
f5f2d7ac39
@ -172,9 +172,9 @@ public class IslandTeamKickCommandTest {
|
||||
when(im.getIsland(any(), any(UUID.class))).thenReturn(island);
|
||||
when(im.getIsland(any(), any(User.class))).thenReturn(island);
|
||||
when(island.getRankCommand(anyString())).thenReturn(RanksManager.VISITOR_RANK);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
User.clearUsers();
|
||||
@ -231,7 +231,7 @@ public class IslandTeamKickCommandTest {
|
||||
IslandTeamKickCommand itl = new IslandTeamKickCommand(ic);
|
||||
when(pm.getUUID(any())).thenReturn(uuid);
|
||||
assertFalse(itl.execute(user, itl.getLabel(), Collections.singletonList("poslovitch")));
|
||||
verify(user).sendMessage(eq("commands.island.kick.cannot-kick"));
|
||||
verify(user).sendMessage(eq("commands.island.team.kick.cannot-kick"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user