Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jul 13, 2024
1 parent d5dbb5d commit 61dac1a
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
"location" : "https://github.com/wordpress-mobile/WordPressKit-iOS",
"state" : {
"branch" : "wpios-edition",
"revision" : "064625fa7ebc448a34b656644f051b9257939655"
"revision" : "90923d3125d6427e66fda4bb8cec309408257126"
}
},
{
Expand Down
1 change: 1 addition & 0 deletions WordPress/Classes/Utility/PushNotificationsManager.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation
import WordPressShared
import NSObject_SafeExpectations
import UserNotifications
import CocoaLumberjack

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import WordPressFlux
import XCTest
import WordPressKit

@testable import WordPress
@testable import WordPressKit

class ActivityStoreTests: CoreDataTestCase {
private var dispatcher: ActionDispatcher!
Expand Down
2 changes: 1 addition & 1 deletion WordPress/WordPressTest/MockWordPressComRestApi.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
@testable import WordPressKit
import WordPressKit

class MockWordPressComRestApi: WordPressComRestApi {
var getMethodCalled = false
Expand Down
4 changes: 2 additions & 2 deletions WordPress/WordPressTest/SiteCreation/SiteCreatorTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import XCTest
import WordPressKit

@testable import WordPress
@testable import WordPressKit

// MARK: - SiteCreatorTests

Expand Down
3 changes: 2 additions & 1 deletion WordPress/WordPressTest/StatsPeriodAsyncOperationTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import XCTest
import WordPressKit

@testable import WordPress
@testable import WordPressKit

class StatsPeriodAsyncOperationTests: XCTestCase {
private let date = Date()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import XCTest
import WordPressKit

@testable import WordPress
@testable import WordPressKit

class TimeZoneFormatterTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Foundation
import XCTest
import WordPressKit

@testable import WordPress
@testable import WordPressKit

class TimeZoneSelectorViewModelTests: CoreDataTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testable import WordPressKit // Announcement is defined here
import WordPressKit // Announcement is defined here

extension Announcement {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@testable import WordPress
@testable import WordPressKit
import XCTest
import WordPressKit
import WordPressFlux

@testable import WordPress

struct MockAnnouncementsCache: AnnouncementsCache {

var announcements: [Announcement]?
Expand Down
2 changes: 1 addition & 1 deletion WordPress/WordPressTest/ZendeskUtilsTests+Plans.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import XCTest
import ZendeskCoreSDK
import WordPressKit

@testable import WordPress
@testable import WordPressKit

class ZendeskUtilsPlans: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@testable import WordPressAuthenticator
import WordPressKit
import WordPressShared

class WordPressAuthenticatorDelegateSpy: WordPressAuthenticatorDelegate {
var dismissActionEnabled: Bool = true
Expand Down

0 comments on commit 61dac1a

Please sign in to comment.