From 1a1553e7bb52872ac8698d26bbf48089b75d3692 Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Fri, 3 May 2019 19:10:36 -0300 Subject: [PATCH] Fixes the breaking unit tests. --- WordPressAuthenticator/Model/LoginFields.swift | 7 ------- WordPressAuthenticator/Services/LoginFacade.m | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/WordPressAuthenticator/Model/LoginFields.swift b/WordPressAuthenticator/Model/LoginFields.swift index b5c48275b..d373ca0c2 100644 --- a/WordPressAuthenticator/Model/LoginFields.swift +++ b/WordPressAuthenticator/Model/LoginFields.swift @@ -48,13 +48,6 @@ public class LoginFields: NSObject { storedCredentials?.storedUserameHash = usernameHash storedCredentials?.storedPasswordHash = passwordHash } - - // MARK: - Convenience - - @objc - public func baseSiteAddress() -> String { - return WordPressAuthenticator.baseSiteURL(string: self.siteAddress) - } } /// A helper class for storing safari saved password information. diff --git a/WordPressAuthenticator/Services/LoginFacade.m b/WordPressAuthenticator/Services/LoginFacade.m index 12f94cde7..3c806cdfc 100644 --- a/WordPressAuthenticator/Services/LoginFacade.m +++ b/WordPressAuthenticator/Services/LoginFacade.m @@ -152,7 +152,7 @@ - (void)signInToSelfHosted:(LoginFields *)loginFields [self.delegate displayLoginMessage:NSLocalizedString(@"Authenticating", nil)]; - NSString *siteUrl = [NSURL IDNEncodedURL: [loginFields baseSiteAddress]]; + NSString *siteUrl = [NSURL IDNEncodedURL: loginFields.siteAddress]; [self.wordpressXMLRPCAPIFacade guessXMLRPCURLForSite:siteUrl success:guessXMLRPCURLSuccess failure:guessXMLRPCURLFailure]; }