Added MediaProvider tests (#386)

* Media provider tests

* Moved classes to separate files

* Moved image file

* Removed unused image file

* Rebase and refactor.

Replace removed error type.
Refactor XYZMock to MockXYZ.

Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
Aleksandrs Proskurins
2023-01-05 20:20:49 +02:00
committed by GitHub
parent e4d087a0a4
commit e573bc0dd2
12 changed files with 456 additions and 12 deletions
@@ -130,7 +130,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
return MediaProvider(mediaProxy: MediaProxy(client: client),
imageCache: .onlyOnDisk,
fileCache: .default,
fileCache: FileCache.default,
backgroundTaskService: nil)
}