[wp-trac] [WordPress Trac] #38971: rest_comment_author_required should not allow empty value

WordPress Trac noreply at wordpress.org
Tue Nov 29 00:51:12 UTC 2016


#38971: rest_comment_author_required should not allow empty value
----------------------------------------+-----------------------
 Reporter:  hnle                        |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.7
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+-----------------------
Changes (by jnylen0):

 * keywords:   => has-patch needs-unit-tests
 * milestone:  Awaiting Review => 4.7


Comment:

 Nice catch, @hnle.  Can you add unit tests for these cases that fail
 before your patch and succeed after your patch?

 - [https://make.wordpress.org/core/handbook/testing/automated-
 testing/phpunit/ WordPress PHPUnit testing docs]
 - [https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/rest-
 api/rest-comments-controller.php Existing tests for comments endpoint]

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


More information about the wp-trac mailing list