Skip to content

Commit

Permalink
Pend UnionPay integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardshin committed May 25, 2016
1 parent 8cf3fac commit 0b9eb5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IntegrationTests/BraintreeUnionPay_IntegrationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ - (void)setUp {
self.cardClient = [[BTCardClient alloc] initWithAPIClient:apiClient];
}

- (void)testFetchCapabilities_returnsCardCapabilities {
- (void)pendFetchCapabilities_returnsCardCapabilities {
XCTestExpectation *expectation = [self expectationWithDescription:@"Callback invoked"];
[self.cardClient fetchCapabilities:@"6212345678901232" completion:^(BTCardCapabilities * _Nullable cardCapabilities, NSError * _Nullable error) {
XCTAssertNil(error);
Expand All @@ -35,7 +35,7 @@ - (void)testFetchCapabilities_returnsCardCapabilities {
[self waitForExpectationsWithTimeout:5 handler:nil];
}

- (void)testEnrollCard_whenSuccessful_returnsEnrollmentID {
- (void)pendEnrollCard_whenSuccessful_returnsEnrollmentID {
BTCardRequest *request = [[BTCardRequest alloc] init];
request.card = [[BTCard alloc] initWithNumber:@"6222821234560017" expirationMonth:@"12" expirationYear:@"2019" cvv:@"123"];
request.mobileCountryCode = @"62";
Expand All @@ -51,7 +51,7 @@ - (void)testEnrollCard_whenSuccessful_returnsEnrollmentID {
[self waitForExpectationsWithTimeout:5 handler:nil];
}

- (void)testEnrollCard_whenCardDoesNotRequireEnrollment_returnsError {
- (void)pendEnrollCard_whenCardDoesNotRequireEnrollment_returnsError {
BTCardRequest *request = [[BTCardRequest alloc] init];
request.card = [[BTCard alloc] initWithNumber:@"6212345678900085" expirationMonth:@"12" expirationYear:@"2019" cvv:@"123"];
request.mobileCountryCode = @"62";
Expand All @@ -68,7 +68,7 @@ - (void)testEnrollCard_whenCardDoesNotRequireEnrollment_returnsError {
[self waitForExpectationsWithTimeout:5 handler:nil];
}

- (void)testTokenizeCard_withEnrolledUnionPayCard_isSuccessful {
- (void)pendTokenizeCard_withEnrolledUnionPayCard_isSuccessful {
BTCardRequest *request = [[BTCardRequest alloc] init];
request.card = [[BTCard alloc] initWithNumber:@"6212345678901232" expirationMonth:@"12" expirationYear:@"2019" cvv:@"123"];
request.mobileCountryCode = @"62";
Expand Down

0 comments on commit 0b9eb5c

Please sign in to comment.