summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-08-02 20:49:25 +0900
committerSho Sakuma <me@m1sk9.dev>2026-08-02 20:49:25 +0900
commitf813fc8c0e2ff48c1dc087733d8d250797a2cd3c (patch)
treeadcabcffed7778719f60c9a9cdf68d6758816579
parent16789f7ad3aadac756904ffc8bda0a7c6271a273 (diff)
downloadLunaticChat-f813fc8c0e2ff48c1dc087733d8d250797a2cd3c.tar.gz
LunaticChat-f813fc8c0e2ff48c1dc087733d8d250797a2cd3c.tar.bz2
LunaticChat-f813fc8c0e2ff48c1dc087733d8d250797a2cd3c.zip
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 <noreply@anthropic.com>
-rw-r--r--platform-paper/src/test/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lc/channel/ChannelInviteCommandTest.kt1
1 files changed, 0 insertions, 1 deletions
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)