mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-26 12:46:01 +01:00
Fix tests.
This commit is contained in:
parent
8d0dbcdc36
commit
5ccaadb2ae
@ -212,7 +212,7 @@ public class IslandCreateCommandTest {
|
||||
when(im.getNumberOfConcurrentIslands(user.getUniqueId(), world)).thenReturn(2);
|
||||
// Player has an island
|
||||
assertFalse(cc.canExecute(user, "", Collections.emptyList()));
|
||||
verify(user).sendMessage("general.errors.you-cannot-make");
|
||||
verify(user).sendMessage("commands.island.create.you-cannot-make");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -222,7 +222,7 @@ public class IslandCreateCommandTest {
|
||||
public void testCanExecuteUserStringListOfStringZeroAllowed() {
|
||||
when(ws.getConcurrentIslands()).thenReturn(0); // No islands allowed
|
||||
assertFalse(cc.canExecute(user, "", Collections.emptyList()));
|
||||
verify(user).sendMessage("general.errors.you-cannot-make");
|
||||
verify(user).sendMessage("commands.island.create.you-cannot-make");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user