[wp-trac] [WordPress Trac] #37523: Unit tests: Move classes out of includes/functions.php into their own file

WordPress Trac noreply at wordpress.org
Tue Aug 30 10:23:51 UTC 2016


#37523: Unit tests: Move classes out of includes/functions.php into their own file
-------------------------------------------------+-------------------------
 Reporter:  Frank Klein                          |       Owner:
     Type:  enhancement                          |  boonebgorges
 Priority:  normal                               |      Status:  reopened
Component:  Build/Test Tools                     |   Milestone:  4.7
 Severity:  normal                               |     Version:  4.6
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  testing                                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by DylanAuty):

 Replying to [comment:7 Frank Klein]:
 > I think it would be cleaner to load the files during the bootstrap
 process, instead of including them in `functions.php`. Nothing in this
 file relies on the two classes, but the tests do.
 >
 > There's a small typo in the patch. It's in the word ''UnitTests'' in the
 documentation header of `class-basic-object.php`.

 Thanks for pointing that out. I have revised my patch and submitted it.

 Apologies for the typo on that one.

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


More information about the wp-trac mailing list