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

WordPress Trac noreply at wordpress.org
Mon Aug 29 16:08:35 UTC 2016


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

 * keywords:   => needs-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Replying to [comment:3 TimothyBlynJacobs]:
 > This broke unit tests that I have that use the `Basic_Object` class in a
 test since they are now only loaded in that test file instead of the
 functions file. Could the require calls be moved to the functions file so
 those classes are always available?

 Yes.

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


More information about the wp-trac mailing list