[wp-trac] [WordPress Trac] #35492: Separate unit test factory classes into separate files
WordPress Trac
noreply at wordpress.org
Mon Jan 18 15:21:40 UTC 2016
#35492: Separate unit test factory classes into separate files
------------------------------+------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.5
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+------------------
Changes (by ericlewis):
* keywords: => has-patch
* milestone: Awaiting Review => 4.5
Comment:
Replying to [comment:3 ericlewis]:
> [The plan is to split] out classes into a new folder [...] then
`require_once` each of these
[https://github.com/aaronjorbin/develop.wordpress/blob/1dbc5b29188cc7d3542b9710e69559bef3816c83/tests/phpunit/includes/testcase.php#L3
in `bootstrap.php`].
Actually, for backwards compatibility, we should `require_once` these in
`factory.php`, where I've left the main class `WP_UnitTest_Factory`.
Proposed patch in attachment:35492.diff.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35492#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list