From 271a3b897b16cae90e4579214ecfd8ff1af7745a Mon Sep 17 00:00:00 2001 From: kong <1018dbrud@gmail.com> Date: Thu, 14 Dec 2023 19:21:18 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20HomeTest=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=EB=90=9C=20=EB=A9=94=EC=86=8C=EB=93=9C=20=EC=9E=84=EC=8B=9C=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mocks/LocationFetcher/MockLocationFetcher.swift | 2 ++ .../LayoverTests/Scenes/Home/HomeInteractorTests.swift | 10 +++++++++- .../LayoverTests/Scenes/Home/HomePresenterTests.swift | 10 ++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/iOS/Layover/LayoverTests/Mocks/LocationFetcher/MockLocationFetcher.swift b/iOS/Layover/LayoverTests/Mocks/LocationFetcher/MockLocationFetcher.swift index 98481c0..7992152 100644 --- a/iOS/Layover/LayoverTests/Mocks/LocationFetcher/MockLocationFetcher.swift +++ b/iOS/Layover/LayoverTests/Mocks/LocationFetcher/MockLocationFetcher.swift @@ -11,9 +11,11 @@ import CoreLocation @testable import Layover final class MockLocationFetcher: LocationFetcher { + var location: CLLocation? var locationFetcherDelegate: Layover.LocationFetcherDelegate? var desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest + var authorizationStatus: CLAuthorizationStatus = .authorizedWhenInUse func requestLocation() { } diff --git a/iOS/Layover/LayoverTests/Scenes/Home/HomeInteractorTests.swift b/iOS/Layover/LayoverTests/Scenes/Home/HomeInteractorTests.swift index 7d6a36e..94c6dbf 100644 --- a/iOS/Layover/LayoverTests/Scenes/Home/HomeInteractorTests.swift +++ b/iOS/Layover/LayoverTests/Scenes/Home/HomeInteractorTests.swift @@ -35,7 +35,15 @@ final class HomeInteractorTests: XCTestCase { // MARK: - Test doubles - final class HomePresentationLogicSpy: HomePresentationLogic { // 호출 테스트를 위한 Spy + final class HomePresentationLogicSpy: HomePresentationLogic { + func presentUploadScene() { + + } + + func presentSetting() { + + } + // 호출 테스트를 위한 Spy var presentPostsCalled = false var presentPostsReceivedResponse: Models.FetchPosts.Response! var presentPlaybackSceneCalled = false diff --git a/iOS/Layover/LayoverTests/Scenes/Home/HomePresenterTests.swift b/iOS/Layover/LayoverTests/Scenes/Home/HomePresenterTests.swift index 6560aa6..35bfd4f 100644 --- a/iOS/Layover/LayoverTests/Scenes/Home/HomePresenterTests.swift +++ b/iOS/Layover/LayoverTests/Scenes/Home/HomePresenterTests.swift @@ -39,6 +39,7 @@ final class HomePresenterTests: XCTestCase { // MARK: - Test doubles final class HomeDisplayLogicSpy: HomeDisplayLogic { + var displayPostsCalled = false var displayPostsReceivedViewModel: Models.FetchPosts.ViewModel! var displayThumbnailImageCalled = false @@ -58,6 +59,15 @@ final class HomePresenterTests: XCTestCase { func routeToTagPlayList() { routeToTagPlayListCalled = true } + + func routeToVideoPicker() { + + } + + func openSetting() { + + } + } // MARK: - Tests