[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:03:35 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 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`.

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


More information about the wp-trac mailing list