From 3a6dcb439c166c67a5ca8a8d40c239c6ac82d7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Garc=C3=ADa=20de=20Prada?= Date: Thu, 29 Sep 2022 09:10:59 +0200 Subject: [PATCH] Update tests with new function name --- .../android/data/file/repository/OCFileRepositoryTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/owncloudData/src/test/java/com/owncloud/android/data/file/repository/OCFileRepositoryTest.kt b/owncloudData/src/test/java/com/owncloud/android/data/file/repository/OCFileRepositoryTest.kt index 890ad0b27f9..52cba8a6413 100644 --- a/owncloudData/src/test/java/com/owncloud/android/data/file/repository/OCFileRepositoryTest.kt +++ b/owncloudData/src/test/java/com/owncloud/android/data/file/repository/OCFileRepositoryTest.kt @@ -64,7 +64,7 @@ class OCFileRepositoryTest { verify(exactly = 1) { remoteFileDataSource.createFolder(any(), false, false) - localFileDataSource.saveFilesInFolder(any(), OC_FOLDER) + localFileDataSource.saveFilesInFolderAndReturnThem(any(), OC_FOLDER) } } @@ -80,7 +80,7 @@ class OCFileRepositoryTest { remoteFileDataSource.createFolder(any(), false, false) } verify(exactly = 0) { - localFileDataSource.saveFilesInFolder(any(), OC_FOLDER) + localFileDataSource.saveFilesInFolderAndReturnThem(any(), OC_FOLDER) } } @@ -203,7 +203,7 @@ class OCFileRepositoryTest { verify(exactly = 1) { remoteFileDataSource.refreshFolder(folderToFetch.remotePath) - localFileDataSource.saveFilesInFolder( + localFileDataSource.saveFilesInFolderAndReturnThem( listOfFiles = listOfFilesRetrieved.drop(1), folder = listOfFilesRetrieved.first() ) @@ -222,7 +222,7 @@ class OCFileRepositoryTest { remoteFileDataSource.refreshFolder(OC_FOLDER.remotePath) } verify(exactly = 0) { - localFileDataSource.saveFilesInFolder(any(), any()) + localFileDataSource.saveFilesInFolderAndReturnThem(any(), any()) } }