[wp-trac] [WordPress Trac] #47195: Switch WP_UnitTest_Factory_For_Blog->create_object() to use wp_insert_site()
WordPress Trac
noreply at wordpress.org
Thu Dec 26 01:19:47 UTC 2019
#47195: Switch WP_UnitTest_Factory_For_Blog->create_object() to use
wp_insert_site()
------------------------------+-----------------------------
Reporter: danielbachhuber | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Comment (by SergeyBiryukov):
For future reference, the `site_id` and `meta` mapping added to
`WP_UnitTest_Factory_For_Blog` in [47011] can now be removed, and the
tests should still pass.
That said, I think it makes sense to keep the mapping for now for back
compat just in case there are any plugins using the factory in their own
tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47195#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list