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

Commit 860ccda

Browse files
committed
Update tests
1 parent 5d95cc1 commit 860ccda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WordPressKitTests/PostServiceRemoteXMLRPCTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class PostServiceRemoteXMLRPCTests: RemoteTestCase, XMLRPCTestable {
1010
let postTitle = "Hello world!"
1111
let postContent = "Welcome to WordPress."
1212
let postIsSticky = true
13+
let postParentId: NSNumber = 2
1314

1415
let getPostSuccessMockFilename = "xmlrpc-wp-getpost-success.xml"
1516
let getPostBadXMLFailureFilename = "xmlrpc-wp-getpost-bad-xml-failure.xml"
@@ -142,6 +143,7 @@ class PostServiceRemoteXMLRPCTests: RemoteTestCase, XMLRPCTestable {
142143
post.title = postTitle
143144
post.content = postContent
144145
post.isStickyPost = postIsSticky
146+
post.parentID = postParentId
145147
return post
146148
}()
147149

@@ -267,6 +269,7 @@ class PostServiceRemoteXMLRPCTests: RemoteTestCase, XMLRPCTestable {
267269
post.title = postTitle
268270
post.content = postContent
269271
post.isStickyPost = postIsSticky
272+
post.parentID = nil
270273
return post
271274
}()
272275

0 commit comments

Comments
 (0)