mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-01 07:03:26 +01:00
Fixed Invincible Visitors unit testing
This commit is contained in:
parent
279dc6fbd8
commit
a12eec7a6b
@ -137,8 +137,7 @@ public class InvincibleVisitorsListenerTest {
|
|||||||
public void testOnClickNoPermission() {
|
public void testOnClickNoPermission() {
|
||||||
when(user.hasPermission(Mockito.anyString())).thenReturn(false);
|
when(user.hasPermission(Mockito.anyString())).thenReturn(false);
|
||||||
listener.onClick(panel, user, ClickType.LEFT, 0);
|
listener.onClick(panel, user, ClickType.LEFT, 0);
|
||||||
Mockito.verify(user).sendMessage("general.errors.no-permission");
|
Mockito.verify(user).sendMessage("general.errors.no-permission", "[permission]", "bskyblock.admin.settings.INVINCIBLE_VISITORS");
|
||||||
Mockito.verify(user).sendMessage("general.errors.you-need", "[permission]", "bskyblock.admin.settings.INVINCIBLE_VISITORS");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user