Fixed Invincible Visitors unit testing

This commit is contained in:
Florian CUNY 2018-08-31 21:12:44 +02:00
parent 279dc6fbd8
commit a12eec7a6b

View File

@ -137,8 +137,7 @@ public class InvincibleVisitorsListenerTest {
public void testOnClickNoPermission() {
when(user.hasPermission(Mockito.anyString())).thenReturn(false);
listener.onClick(panel, user, ClickType.LEFT, 0);
Mockito.verify(user).sendMessage("general.errors.no-permission");
Mockito.verify(user).sendMessage("general.errors.you-need", "[permission]", "bskyblock.admin.settings.INVINCIBLE_VISITORS");
Mockito.verify(user).sendMessage("general.errors.no-permission", "[permission]", "bskyblock.admin.settings.INVINCIBLE_VISITORS");
}
@Test