Skip to content

Commit

Permalink
Fixes the breaking unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreymendez committed May 3, 2019
1 parent 6ba5627 commit 1a1553e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions WordPressAuthenticator/Model/LoginFields.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion WordPressAuthenticator/Services/LoginFacade.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 1a1553e

Please sign in to comment.