diff --git a/src/test/java/world/bentobox/bentobox/api/user/UserTest.java b/src/test/java/world/bentobox/bentobox/api/user/UserTest.java index 695cefe17..6607aa96a 100644 --- a/src/test/java/world/bentobox/bentobox/api/user/UserTest.java +++ b/src/test/java/world/bentobox/bentobox/api/user/UserTest.java @@ -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);