[wp-trac] [WordPress Trac] #59999: Enhancement: Allow to overwrite `WP_UnitTestCase_Base::factory()` method.

WordPress Trac noreply at wordpress.org
Sat Dec 2 11:56:46 UTC 2023


#59999: Enhancement: Allow to overwrite `WP_UnitTestCase_Base::factory()`  method.
--------------------------------------+-----------------------------
 Reporter:  hugod                     |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57149" 57149]:
 {{{
 #!CommitTicketReference repository="" revision="57149"
 Build/Test Tools: Allow overriding the `WP_UnitTestCase_Base::factory()`
 method.

 This allows third-party plugins to write their own factory extending
 `WP_UnitTest_Factory` for testing purposes, as well as benefit from
 `WP_UnitTestCase_Base` features.

 Follow-up to [35186], [35225], [35242].

 Props hugod.
 Fixes #59999.
 }}}

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


More information about the wp-trac mailing list