Commit f42e01c6 by Dima Bart

Fix tests.

parent b8d3e81b
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
[self.client logoutCustomerID:customer.identifier.stringValue callback:^(BUYStatus status, NSError * _Nullable error) { [self.client logoutCustomerID:customer.identifier.stringValue callback:^(BUYStatus status, NSError * _Nullable error) {
XCTAssertNil(error); XCTAssertNil(error);
XCTAssertEqual(status, BUYStatusComplete); XCTAssertEqual(status, 204);
[expectation fulfill]; [expectation fulfill];
}]; }];
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
{ {
BUYAccountCredentialItem *email = [BUYAccountCredentialItem itemWithEmail:self.customerEmail]; BUYAccountCredentialItem *email = [BUYAccountCredentialItem itemWithEmail:self.customerEmail];
BUYAccountCredentialItem *password = [BUYAccountCredentialItem itemWithPassword:self.customerPassword]; BUYAccountCredentialItem *password = [BUYAccountCredentialItem itemWithPassword:self.customerPassword];
BUYAccountCredentialItem *password2 = [BUYAccountCredentialItem itemWithPassword:self.customerPassword]; BUYAccountCredentialItem *password2 = [BUYAccountCredentialItem itemWithPasswordConfirmation:self.customerPassword];
return [BUYAccountCredentials credentialsWithItems:@[email, password, password2]]; return [BUYAccountCredentials credentialsWithItems:@[email, password, password2]];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment