mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-14 12:11:32 +01:00
Added testHasNotPermissionButIsOp in UserTest
This commit is contained in:
parent
2bec47ba90
commit
af96055753
@ -215,6 +215,16 @@ public class UserTest {
|
||||
assertTrue(user.hasPermission("perm"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that {@link User#hasPermission(String)} returns true when the user is op.
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@Test
|
||||
public void testHasNotPermissionButIsOp() {
|
||||
when(user.isOp()).thenReturn(true);
|
||||
assertTrue(user.hasPermission(""));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsOnline() {
|
||||
when(player.isOnline()).thenReturn(true);
|
||||
|
Loading…
Reference in New Issue
Block a user