1
0
Fork 0
mirror of https://github.com/bitwarden/android.git synced 2025-02-22 16:49:13 +03:00

[PM-15969] Update test to match logic changes

This commit is contained in:
André Bispo 2025-01-02 12:16:34 +00:00
parent 7746b6c0c7
commit 5f40ac3004
No known key found for this signature in database
GPG key ID: E5610EF043C76548

View file

@ -155,13 +155,11 @@ class CollectionViewExtensionsTest {
@Suppress("MaxLineLength")
@Test
fun `canAssociateToCollections should return false if the user has except password permission at least one collection`() {
fun `canAssociateToCollections should return false if the user doesn't have any manage or edit permissions`() {
val collectionList: List<CollectionView> = listOf(
createEditExceptPasswordsCollectionView(number = 1),
createViewCollectionView(number = 2),
createViewExceptPasswordsCollectionView(number = 3),
createManageCollectionView(number = 4),
createEditCollectionView(number = 5),
)
val collectionIds = collectionList.mapNotNull { it.id }
assertFalse(collectionList.canAssignToCollections(collectionIds))