[wp-trac] [WordPress Trac] #35993: Unit tests: XML-RPC Request routines

WordPress Trac noreply at wordpress.org
Mon Sep 21 19:25:19 UTC 2020


#35993: Unit tests: XML-RPC Request routines
-------------------------------------------------+-------------------------
 Reporter:  borgesbruno                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  XML-RPC                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback needs-refresh                         |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  has-patch has-unit-tests dev-feedback => has-patch has-unit-
     tests dev-feedback needs-refresh
 * milestone:   => Future Release


Old description:

> I wrote unit tests for the 3 methods regards to XML-RPC request in
> functions.php, the aim is improve de code coverage, theses methods are:
> * xmlrpc_getposttitle()
> * xmlrpc_getpostcategory()
> * xmlrpc_removepostdata()
>
> This patch cover 100% of coverage related to theses methods above.
>
> Only one thing to consider, I didn't found any XML-RPC format on the
> Wordpress doc with title and category, so I've created a simple XML
> format with both, following the methods the behaviour is the same.

New description:

 I wrote unit tests for the 3 methods regards to XML-RPC request in
 functions.php, the aim is improve de code coverage, theses methods are:
 * xmlrpc_getposttitle()
 * xmlrpc_getpostcategory()
 * xmlrpc_removepostdata()

 This patch cover 100% of coverage related to theses methods above.

 Only one thing to consider, I didn't found any XML-RPC format on the
 WordPress doc with title and category, so I've created a simple XML format
 with both, following the methods the behaviour is the same.

--

Comment:

 This patch needs a refresh.

 Related: #20070.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35993#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list