Skip to content

Commit 4b56688

Browse files
committed
refactor: replaced space object in getSpaceByIdForAccount test by a space without specials
1 parent 7f037b0 commit 4b56688

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

owncloudData/src/test/java/com/owncloud/android/data/spaces/repository/OCSpacesRepositoryTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @author Jorge Aguado Recio
55
*
6-
* Copyright (C) 2024 ownCloud GmbH.
6+
* Copyright (C) 2025 ownCloud GmbH.
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License version 2,
@@ -221,14 +221,14 @@ class OCSpacesRepositoryTest {
221221
@Test
222222
fun `getSpaceByIdForAccount returns an OCSpace`() {
223223
every {
224-
localSpacesDataSource.getSpaceByIdForAccount(OC_SPACE_PROJECT_WITH_IMAGE.id, OC_ACCOUNT_NAME)
225-
} returns OC_SPACE_PROJECT_WITH_IMAGE
224+
localSpacesDataSource.getSpaceByIdForAccount(OC_SPACE_PERSONAL.id, OC_ACCOUNT_NAME)
225+
} returns OC_SPACE_PERSONAL
226226

227-
val space = ocSpacesRepository.getSpaceByIdForAccount(OC_SPACE_PROJECT_WITH_IMAGE.id, OC_ACCOUNT_NAME)
228-
assertEquals(OC_SPACE_PROJECT_WITH_IMAGE, space)
227+
val space = ocSpacesRepository.getSpaceByIdForAccount(OC_SPACE_PERSONAL.id, OC_ACCOUNT_NAME)
228+
assertEquals(OC_SPACE_PERSONAL, space)
229229

230230
verify(exactly = 1) {
231-
localSpacesDataSource.getSpaceByIdForAccount(OC_SPACE_PROJECT_WITH_IMAGE.id, OC_ACCOUNT_NAME)
231+
localSpacesDataSource.getSpaceByIdForAccount(OC_SPACE_PERSONAL.id, OC_ACCOUNT_NAME)
232232
}
233233
}
234234

0 commit comments

Comments
 (0)