From f813fc8c0e2ff48c1dc087733d8d250797a2cd3c Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Sun, 2 Aug 2026 20:49:25 +0900 Subject: test: drop a stub the invite command no longer reaches ChannelInviteCommand used to pre-check isPlayerBanned itself. That check moved into ChannelMembershipManager.inviteToChannel in 288d1e4, but the stub stayed behind, implying the command still consults the channel manager for ban state when it no longer does. Co-Authored-By: Claude --- .../paper/command/impl/lc/channel/ChannelInviteCommandTest.kt | 1 - 1 file changed, 1 deletion(-) (limited to 'platform-paper') diff --git a/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/channel/ChannelInviteCommandTest.kt b/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/channel/ChannelInviteCommandTest.kt index 65db127..3682c74 100644 --- a/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/channel/ChannelInviteCommandTest.kt +++ b/platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/channel/ChannelInviteCommandTest.kt @@ -55,7 +55,6 @@ class ChannelInviteCommandTest { every { deps.channelManager.getPlayerChannel(testUUID) } returns channelId every { deps.membershipManager.hasRole(testUUID, channelId, any()) } returns Result.success(true) - every { deps.channelManager.isPlayerBanned(channelId, targetUUID) } returns Result.success(false) every { deps.membershipManager.inviteToChannel(testUUID, targetUUID, channelId) } returns Result.success(Unit) every { deps.channelManager.getChannel(channelId) } returns Result.success(channel) -- cgit v1.2.1