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:
parent
7746b6c0c7
commit
5f40ac3004
1 changed files with 1 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue