Skip to content

Commit 5e553f0

Browse files
committed
Adapt tests to new behavior
1 parent f56896c commit 5e553f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

owncloudData/src/test/java/com/owncloud/android/data/shares/datasources/OCRemoteShareDataSourceTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class OCRemoteShareDataSourceTest {
372372
@Test
373373
fun deleteShare() {
374374
val removeRemoteShareOperationResult = createRemoteOperationResultMock(
375-
ShareResponse(arrayListOf()),
375+
Unit,
376376
isSuccess = true
377377
)
378378

@@ -397,7 +397,7 @@ class OCRemoteShareDataSourceTest {
397397

398398
private fun deleteShareOperationWithError(resultCode: RemoteOperationResult.ResultCode? = null) {
399399
val removeRemoteShareOperationResult = createRemoteOperationResultMock(
400-
ShareResponse(arrayListOf()),
400+
Unit,
401401
false,
402402
null,
403403
resultCode
@@ -409,4 +409,4 @@ class OCRemoteShareDataSourceTest {
409409

410410
ocRemoteShareDataSource.deleteShare("1")
411411
}
412-
}
412+
}

0 commit comments

Comments
 (0)