[wp-trac] [WordPress Trac] #30860: Add unit tests for plugin.php

WordPress Trac noreply at wordpress.org
Mon Dec 29 22:57:37 UTC 2014


#30860: Add unit tests for plugin.php
------------------------------+-----------------------------
 Reporter:  sgrant            |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I wrote some tests to expand the coverage for src/wp-
 admin/includes/plugin.php. In addition to the tests, there's a
 modification to a single return statement to send an empty array instead
 of null (it seemed strange to have a function returning two values--null
 or array()--when the list of plugins was unchanged). The only place that
 the modified function is used won't see any behaviour changes.

 Please let me know if this looks reasonable, and thanks! (second ticket,
 still terrified) :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30860>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list