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

WordPress Trac noreply at wordpress.org
Tue Dec 30 19:17:44 UTC 2014


#30860: Add unit tests for plugin.php
------------------------------+--------------------
 Reporter:  sgrant            |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.2
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+--------------------
Changes (by boonebgorges):

 * milestone:  Awaiting Review => 4.2


Comment:

 sgrant - Thanks so much for these tests.

 It's not necessary to test `_get_dropins()` directly. For one thing, the
 values there are hardcoded. For another, the underscore prefix suggests
 that it's private, so that it'll get any necessary coverage from
 integration tests for functions that call `_get_dropins()`. I'll add a
 test that demonstrates this.

 I'm also going to add expanded tests for `get_mu_plugins()`.

 These tests don't represent full coverage of the functions in question -
 for one thing, there should be more coverage of non-single-file plugins -
 but this is a great start.

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


More information about the wp-trac mailing list