From d999ebd1fb7b85e670d89c001168b2e006d2b8d4 Mon Sep 17 00:00:00 2001 From: Juan Carlos Garrote Date: Thu, 21 Nov 2024 10:26:47 +0100 Subject: [PATCH] refactor: removed unnecessary function mock --- .../android/data/files/repository/OCFileRepositoryTest.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/owncloudData/src/test/java/com/owncloud/android/data/files/repository/OCFileRepositoryTest.kt b/owncloudData/src/test/java/com/owncloud/android/data/files/repository/OCFileRepositoryTest.kt index 3c6772ce682..f63a53c41aa 100644 --- a/owncloudData/src/test/java/com/owncloud/android/data/files/repository/OCFileRepositoryTest.kt +++ b/owncloudData/src/test/java/com/owncloud/android/data/files/repository/OCFileRepositoryTest.kt @@ -99,12 +99,6 @@ class OCFileRepositoryTest { @Test fun `createFolder creates a new folder and saves it`() { - every { - localSpacesDataSource.getWebDavUrlForSpace( - spaceId = OC_PARENT_FOLDER_WITH_SPACE_ID.spaceId, - accountName = OC_PARENT_FOLDER_WITH_SPACE_ID.owner - ) - } returns OC_SPACE_PERSONAL.root.webDavUrl // The result of this method is not used, so it can be anything every { localFileDataSource.saveFilesInFolderAndReturnTheFilesThatChanged(any(), any()) } returns emptyList()