Skip to content

Commit 2d2d19a

Browse files
committed
fix: endpoint version in method testThatGetThemesWorks
1 parent 407437b commit 2d2d19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/WordPressKitTests/Tests/ThemeServiceRemoteTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ - (void)testThatGetThemesWorks
196196
XCTAssertNoThrow(service = [[ThemeServiceRemote alloc] initWithWordPressComRestApi:api]);
197197

198198
NSString *url = [service pathForEndpoint:@"themes"
199-
withVersion:WordPressComRESTAPIVersion_1_2];
199+
withVersion:WordPressComRESTAPIVersion_2_0];
200200

201201
ThemeServiceRemoteThemesRequestSuccessBlock successBlock = ^void (NSArray<RemoteTheme *> *themes, BOOL hasMore, NSInteger totalThemeCount) {
202202
NSCAssert([themes count] == expectedThemes, @"Expected %ld themes to be returned", expectedThemes);

0 commit comments

Comments
 (0)