@@ -21,7 +21,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
2121 let channel = ChatChannel . mock (
2222 cid: . unique,
2323 name: " Test Group " ,
24- ownCapabilities: [ . deleteChannel, . updateChannel, . updateChannelMembers] ,
24+ ownCapabilities: [ . deleteChannel, . updateChannel, . updateChannelMembers, . muteChannel ] ,
2525 lastActiveMembers: members,
2626 memberCount: members. count
2727 )
@@ -43,6 +43,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
4343 )
4444 let channel = ChatChannel . mockDMChannel (
4545 name: " Direct channel " ,
46+ ownCapabilities: [ . muteChannel] ,
4647 lastActiveMembers: members
4748 )
4849
@@ -63,6 +64,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
6364 )
6465 let channel = ChatChannel . mockDMChannel (
6566 name: " Direct channel " ,
67+ ownCapabilities: [ . muteChannel] ,
6668 lastActiveMembers: members
6769 )
6870
@@ -82,6 +84,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
8284 )
8385 let channel = ChatChannel . mockDMChannel (
8486 name: " Direct channel " ,
87+ ownCapabilities: [ . muteChannel] ,
8588 lastActiveMembers: members
8689 )
8790
@@ -101,6 +104,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
101104 )
102105 let channel = ChatChannel . mockDMChannel (
103106 name: " Direct channel " ,
107+ ownCapabilities: [ . muteChannel] ,
104108 lastActiveMembers: members,
105109 muteDetails: MuteDetails ( createdAt: Date ( ) , updatedAt: Date ( ) , expiresAt: nil )
106110 )
@@ -123,7 +127,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
123127 let group = ChatChannel . mock (
124128 cid: . unique,
125129 name: " Test Group " ,
126- ownCapabilities: [ . deleteChannel, . updateChannel] ,
130+ ownCapabilities: [ . deleteChannel, . updateChannel, . muteChannel ] ,
127131 lastActiveMembers: members,
128132 memberCount: members. count
129133 )
@@ -146,7 +150,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
146150 let group = ChatChannel . mock (
147151 cid: . unique,
148152 name: " Test Group " ,
149- ownCapabilities: [ . leaveChannel, . updateChannel] ,
153+ ownCapabilities: [ . leaveChannel, . updateChannel, . muteChannel ] ,
150154 lastActiveMembers: members,
151155 memberCount: members. count
152156 )
@@ -170,7 +174,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
170174 let group = ChatChannel . mock (
171175 cid: . unique,
172176 name: " Test Group " ,
173- ownCapabilities: [ . leaveChannel, . updateChannel] ,
177+ ownCapabilities: [ . leaveChannel, . updateChannel, . muteChannel ] ,
174178 lastActiveMembers: members,
175179 memberCount: members. count
176180 )
@@ -193,7 +197,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
193197 let group = ChatChannel . mock (
194198 cid: . unique,
195199 name: " Test Group " ,
196- ownCapabilities: [ . deleteChannel, . updateChannel] ,
200+ ownCapabilities: [ . deleteChannel, . updateChannel, . muteChannel ] ,
197201 lastActiveMembers: members,
198202 memberCount: members. count
199203 )
@@ -219,7 +223,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
219223 let group = ChatChannel . mock (
220224 cid: . unique,
221225 name: " Test Group " ,
222- ownCapabilities: [ . deleteChannel, . updateChannel] ,
226+ ownCapabilities: [ . deleteChannel, . updateChannel, . muteChannel ] ,
223227 lastActiveMembers: members,
224228 memberCount: members. count
225229 )
@@ -244,7 +248,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
244248 let group = ChatChannel . mock (
245249 cid: . unique,
246250 name: " Test Group " ,
247- ownCapabilities: [ . deleteChannel, . updateChannel] ,
251+ ownCapabilities: [ . deleteChannel, . updateChannel, . muteChannel ] ,
248252 lastActiveMembers: members,
249253 memberCount: members. count
250254 )
@@ -268,7 +272,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
268272 let group = ChatChannel . mock (
269273 cid: . unique,
270274 name: " Test Group " ,
271- ownCapabilities: [ . updateChannel, . leaveChannel, . updateChannelMembers] ,
275+ ownCapabilities: [ . updateChannel, . leaveChannel, . updateChannelMembers, . muteChannel ] ,
272276 lastActiveMembers: members,
273277 memberCount: members. count
274278 )
@@ -297,7 +301,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
297301 let group = ChatChannel . mock (
298302 cid: . unique,
299303 name: " Test Group " ,
300- ownCapabilities: [ . deleteChannel, . updateChannel] ,
304+ ownCapabilities: [ . deleteChannel, . muteChannel , . updateChannel] ,
301305 lastActiveMembers: members,
302306 memberCount: members. count
303307 )
@@ -322,7 +326,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
322326 let group = ChatChannel . mock (
323327 cid: . unique,
324328 name: " Test Group " ,
325- ownCapabilities: [ . updateChannelMembers] ,
329+ ownCapabilities: [ . updateChannelMembers, . muteChannel ] ,
326330 lastActiveMembers: members,
327331 memberCount: members. count
328332 )
@@ -350,7 +354,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
350354 cid: . unique,
351355 name: " Test Group " ,
352356 config: config,
353- ownCapabilities: [ . updateChannelMembers] ,
357+ ownCapabilities: [ . updateChannelMembers, . muteChannel ] ,
354358 lastActiveMembers: members,
355359 memberCount: members. count
356360 )
@@ -376,7 +380,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
376380 let group = ChatChannel . mock (
377381 cid: . unique,
378382 name: " Test Group " ,
379- ownCapabilities: [ . updateChannelMembers] ,
383+ ownCapabilities: [ . updateChannelMembers, . muteChannel ] ,
380384 lastActiveMembers: members,
381385 memberCount: members. count
382386 )
@@ -402,7 +406,7 @@ class ChatChannelInfoView_Tests: StreamChatTestCase {
402406 let group = ChatChannel . mock (
403407 cid: . unique,
404408 name: " Test Group " ,
405- ownCapabilities: [ . updateChannelMembers] ,
409+ ownCapabilities: [ . updateChannelMembers, . muteChannel ] ,
406410 lastActiveMembers: members,
407411 memberCount: members. count
408412 )
0 commit comments