Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit d617a41

Browse files
author
Paul Von Schrottky
committed
Add back tests and mocks
1 parent b1cc66d commit d617a41

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

WordPressKit.xcodeproj/project.pbxproj

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,16 @@
557557
AB49D0B325D1B4D80084905B /* post-likes-failure.json in Resources */ = {isa = PBXBuildFile; fileRef = AB49D0B225D1B4D80084905B /* post-likes-failure.json */; };
558558
ABD95B7F25DD6C4B00735BEE /* CommentServiceRemoteRESTLikesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABD95B7E25DD6C4B00735BEE /* CommentServiceRemoteRESTLikesTests.swift */; };
559559
ABD95B8525DD6DA200735BEE /* comment-likes-success.json in Resources */ = {isa = PBXBuildFile; fileRef = ABD95B8425DD6DA200735BEE /* comment-likes-success.json */; };
560+
B04D8C042BB7895A002717A2 /* stats-insight-comments.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BF92BB7895A002717A2 /* stats-insight-comments.json */; };
561+
B04D8C052BB7895A002717A2 /* stats-insight-followers.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BFA2BB7895A002717A2 /* stats-insight-followers.json */; };
562+
B04D8C062BB7895A002717A2 /* stats-insight-last-post.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BFB2BB7895A002717A2 /* stats-insight-last-post.json */; };
563+
B04D8C072BB7895A002717A2 /* stats-insight-publicize.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BFC2BB7895A002717A2 /* stats-insight-publicize.json */; };
564+
B04D8C082BB7895A002717A2 /* stats-insight-streak.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BFD2BB7895A002717A2 /* stats-insight-streak.json */; };
565+
B04D8C092BB7895A002717A2 /* stats-insight-summary.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BFE2BB7895A002717A2 /* stats-insight-summary.json */; };
566+
B04D8C0A2BB7895A002717A2 /* stats-insight-tag-and-category.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8BFF2BB7895A002717A2 /* stats-insight-tag-and-category.json */; };
567+
B04D8C0B2BB7895A002717A2 /* stats-insight.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8C002BB7895A002717A2 /* stats-insight.json */; };
568+
B04D8C0C2BB7895A002717A2 /* stats.json in Resources */ = {isa = PBXBuildFile; fileRef = B04D8C012BB7895A002717A2 /* stats.json */; };
569+
B04D8C0D2BB7895A002717A2 /* StatsInsightDecodingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B04D8C032BB7895A002717A2 /* StatsInsightDecodingTests.swift */; };
560570
B5969E1C20A49AC4005E9DF1 /* NSString+MD5.h in Headers */ = {isa = PBXBuildFile; fileRef = B5969E1920A49AC4005E9DF1 /* NSString+MD5.h */; settings = {ATTRIBUTES = (Public, ); }; };
561571
B5969E1D20A49AC4005E9DF1 /* NSString+MD5.m in Sources */ = {isa = PBXBuildFile; fileRef = B5969E1A20A49AC4005E9DF1 /* NSString+MD5.m */; };
562572
B5A4822B20AC6C0B009D95F6 /* WPKitLogging.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5A4822A20AC6C0B009D95F6 /* WPKitLogging.swift */; };
@@ -1296,6 +1306,16 @@
12961306
AB49D0B225D1B4D80084905B /* post-likes-failure.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = "post-likes-failure.json"; sourceTree = "<group>"; };
12971307
ABD95B7E25DD6C4B00735BEE /* CommentServiceRemoteRESTLikesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommentServiceRemoteRESTLikesTests.swift; sourceTree = "<group>"; };
12981308
ABD95B8425DD6DA200735BEE /* comment-likes-success.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = "comment-likes-success.json"; sourceTree = "<group>"; };
1309+
B04D8BF92BB7895A002717A2 /* stats-insight-comments.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-comments.json"; sourceTree = "<group>"; };
1310+
B04D8BFA2BB7895A002717A2 /* stats-insight-followers.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-followers.json"; sourceTree = "<group>"; };
1311+
B04D8BFB2BB7895A002717A2 /* stats-insight-last-post.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-last-post.json"; sourceTree = "<group>"; };
1312+
B04D8BFC2BB7895A002717A2 /* stats-insight-publicize.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-publicize.json"; sourceTree = "<group>"; };
1313+
B04D8BFD2BB7895A002717A2 /* stats-insight-streak.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-streak.json"; sourceTree = "<group>"; };
1314+
B04D8BFE2BB7895A002717A2 /* stats-insight-summary.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-summary.json"; sourceTree = "<group>"; };
1315+
B04D8BFF2BB7895A002717A2 /* stats-insight-tag-and-category.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight-tag-and-category.json"; sourceTree = "<group>"; };
1316+
B04D8C002BB7895A002717A2 /* stats-insight.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "stats-insight.json"; sourceTree = "<group>"; };
1317+
B04D8C012BB7895A002717A2 /* stats.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = stats.json; sourceTree = "<group>"; };
1318+
B04D8C032BB7895A002717A2 /* StatsInsightDecodingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatsInsightDecodingTests.swift; sourceTree = "<group>"; };
12991319
B5969E1920A49AC4005E9DF1 /* NSString+MD5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+MD5.h"; sourceTree = "<group>"; };
13001320
B5969E1A20A49AC4005E9DF1 /* NSString+MD5.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+MD5.m"; sourceTree = "<group>"; };
13011321
B5A4822A20AC6C0B009D95F6 /* WPKitLogging.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WPKitLogging.swift; sourceTree = "<group>"; };
@@ -2419,6 +2439,22 @@
24192439
path = "Mock Data";
24202440
sourceTree = "<group>";
24212441
};
2442+
B04D8C022BB7895A002717A2 /* MockData */ = {
2443+
isa = PBXGroup;
2444+
children = (
2445+
B04D8BF92BB7895A002717A2 /* stats-insight-comments.json */,
2446+
B04D8BFA2BB7895A002717A2 /* stats-insight-followers.json */,
2447+
B04D8BFB2BB7895A002717A2 /* stats-insight-last-post.json */,
2448+
B04D8BFC2BB7895A002717A2 /* stats-insight-publicize.json */,
2449+
B04D8BFD2BB7895A002717A2 /* stats-insight-streak.json */,
2450+
B04D8BFE2BB7895A002717A2 /* stats-insight-summary.json */,
2451+
B04D8BFF2BB7895A002717A2 /* stats-insight-tag-and-category.json */,
2452+
B04D8C002BB7895A002717A2 /* stats-insight.json */,
2453+
B04D8C012BB7895A002717A2 /* stats.json */,
2454+
);
2455+
path = MockData;
2456+
sourceTree = "<group>";
2457+
};
24222458
B5A4821F20AC6B5C009D95F6 /* Private */ = {
24232459
isa = PBXGroup;
24242460
children = (
@@ -2490,6 +2526,8 @@
24902526
F3FF8A1D279C86FE00E5C90F /* Insights */ = {
24912527
isa = PBXGroup;
24922528
children = (
2529+
B04D8C022BB7895A002717A2 /* MockData */,
2530+
B04D8C032BB7895A002717A2 /* StatsInsightDecodingTests.swift */,
24932531
F3FF8A1E279C871A00E5C90F /* StatsDotComFollowersInsightTests.swift */,
24942532
);
24952533
path = Insights;
@@ -2755,6 +2793,7 @@
27552793
9A881756223C01E400A3AB20 /* jetpack-service-error-activation-failure.json in Resources */,
27562794
740B23E71F17FB4200067A2A /* xmlrpc-metaweblog-newpost-success.xml in Resources */,
27572795
74FC6F411F191C1D00112505 /* notifications-last-seen.json in Resources */,
2796+
B04D8C092BB7895A002717A2 /* stats-insight-summary.json in Resources */,
27582797
74C473BD1EF329CA009918F2 /* site-export-auth-failure.json in Resources */,
27592798
E6C1E84A1EF21FC100D139D9 /* is-passwordless-account-success.json in Resources */,
27602799
BA3F139224A0AB54006367A3 /* plugin-install-already-installed.json in Resources */,
@@ -2794,6 +2833,7 @@
27942833
FFE247B420C891E6002DF3A2 /* WordPressComOAuthSuccess.json in Resources */,
27952834
404057D4221C5FC40060250C /* stats-countries-data.json in Resources */,
27962835
74D67F1F1F15C3240010C5ED /* people-send-invitation-success.json in Resources */,
2836+
B04D8C0A2BB7895A002717A2 /* stats-insight-tag-and-category.json in Resources */,
27972837
FFE247B020C891E6002DF3A2 /* WordPressComAuthenticateWithIDToken2FANeededSuccess.json in Resources */,
27982838
8B2F4BEB24ABCA700056C08A /* reader-cards-success.json in Resources */,
27992839
436D563E2118E34D00CEAA33 /* supported-states-success.json in Resources */,
@@ -2818,16 +2858,20 @@
28182858
74D67F141F15C2D70010C5ED /* site-roles-bad-json-failure.json in Resources */,
28192859
9A2D0B31225E1245009E585F /* jetpack-service-check-site-failure-data.json in Resources */,
28202860
40E4698B2017C2840030DB5F /* plugin-directory-popular.json in Resources */,
2861+
B04D8C0B2BB7895A002717A2 /* stats-insight.json in Resources */,
28212862
74C473B91EF325F6009918F2 /* site-delete-missing-status-failure.json in Resources */,
28222863
7403A2FD1EF06FEB00DED7DC /* me-settings-change-primary-site-success.json in Resources */,
2864+
B04D8C082BB7895A002717A2 /* stats-insight-streak.json in Resources */,
28232865
74C473B71EF3229B009918F2 /* site-delete-unexpected-json-failure.json in Resources */,
28242866
3297E2852564746800287D21 /* jetpack-scan-unavailable.json in Resources */,
2867+
B04D8C072BB7895A002717A2 /* stats-insight-publicize.json in Resources */,
28252868
AB49D0B325D1B4D80084905B /* post-likes-failure.json in Resources */,
28262869
9A2D0B30225E1245009E585F /* jetpack-service-check-site-success-no-jetpack.json in Resources */,
28272870
FA79F1882591730D00D235A9 /* backup-prepare-backup-success.json in Resources */,
28282871
E6B0461225E5B6F500DF6F4F /* sites-invites.json in Resources */,
28292872
9A88174E223C01E400A3AB20 /* jetpack-service-error-unknown.json in Resources */,
28302873
40819771221DFDB700A298E4 /* stats-posts-data.json in Resources */,
2874+
B04D8C062BB7895A002717A2 /* stats-insight-last-post.json in Resources */,
28312875
740B23EE1F17FB7E00067A2A /* xmlrpc-malformed-request-xml-error.xml in Resources */,
28322876
826016F91F9FAF6300533B6C /* activity-log-success-3.json in Resources */,
28332877
FE20A6A8282BC83A0025E975 /* blogging-prompts-settings-update-with-response.json in Resources */,
@@ -2899,6 +2943,7 @@
28992943
E6B0461525E5B6F500DF6F4F /* sites-invites-links-disable-empty.json in Resources */,
29002944
93BD27631EE73442002BB00B /* me-sites-visibility-bad-json-failure.json in Resources */,
29012945
17BF9A7220C7E18200BF57D2 /* reader-site-search-success-hasmore.json in Resources */,
2946+
B04D8C0C2BB7895A002717A2 /* stats.json in Resources */,
29022947
FE5096632A309DE000DDD071 /* jetpack-social-no-publicize.json in Resources */,
29032948
9AB6D64B21872A0D0008F274 /* post-revisions-success.json in Resources */,
29042949
1DF972C029B107E7007A72BC /* videopress-public-video.json in Resources */,
@@ -2908,6 +2953,7 @@
29082953
3297E1E42564683600287D21 /* jetpack-scan-in-progress.json in Resources */,
29092954
E689431E21B0A1A800C5E4A7 /* plans-mobile-success.json in Resources */,
29102955
BA8EA71724A0763900D5CC9F /* site-plugins-malformed.json in Resources */,
2956+
B04D8C052BB7895A002717A2 /* stats-insight-followers.json in Resources */,
29112957
74D67F3B1F15C3740010C5ED /* site-viewers-delete-success.json in Resources */,
29122958
93BD275F1EE73442002BB00B /* me-sites-auth-failure.json in Resources */,
29132959
74585BA11F0D6F5300E7E667 /* domain-service-empty.json in Resources */,
@@ -2920,6 +2966,7 @@
29202966
74D67F151F15C2D70010C5ED /* site-roles-success.json in Resources */,
29212967
8BFB4E6625B07905004D026E /* jetpack-capabilities-34197361-success.json in Resources */,
29222968
9A881753223C01E400A3AB20 /* jetpack-service-error-site-is-jetpack.json in Resources */,
2969+
B04D8C042BB7895A002717A2 /* stats-insight-comments.json in Resources */,
29232970
D8DB404221EF22B500B8238E /* site-segments-multiple.json in Resources */,
29242971
740B23E11F17FB4200067A2A /* xmlrpc-metaweblog-editpost-bad-xml-failure.xml in Resources */,
29252972
BA5AEF6D24923DDD007D8E49 /* plugin-state-contact-form-7.json in Resources */,
@@ -3376,6 +3423,7 @@
33763423
46ABD0EA262EEE0400C7FF24 /* AppTransportSecuritySettingsTests.swift in Sources */,
33773424
74D67F0A1F15C24C0010C5ED /* PeopleServiceRemoteTests.swift in Sources */,
33783425
4A1123A22B19690C004690CF /* MultipartFormTests.swift in Sources */,
3426+
B04D8C0D2BB7895A002717A2 /* StatsInsightDecodingTests.swift in Sources */,
33793427
9F3E0BAE20873836009CB5BA /* ReaderTopicServiceRemoteTest+Subscriptions.swift in Sources */,
33803428
4A05E79E2B30F3C500C25E3B /* HTTPRequestHelpers.swift in Sources */,
33813429
BA0637ED2492382200AF8419 /* PluginStateTests.swift in Sources */,

0 commit comments

Comments
 (0)