[wp-trac] [WordPress Trac] #36566: Improve unit tests around multisite's bootstrap, networks, and sites
WordPress Trac
noreply at wordpress.org
Wed May 11 19:21:25 UTC 2016
#36566: Improve unit tests around multisite's bootstrap, networks, and sites
--------------------------------+------------------------
Reporter: jeremyfelt | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.6
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------
Comment (by jeremyfelt):
In [changeset:"37418"]:
{{{
#!CommitTicketReference repository="" revision="37418"
Tests: Set `public` to `1` in the default blog factory
When no `$meta` arguments are passed to `wpmu_create_blog()`, `public` is
set to `0` in the database for new sites. This is fine, but also does not
match the default implied when most sites are created via `site-new.php`.
The only current use of the `$meta` argument in the tests is to (re)mark
`public` as `0`. All existing tests pass with this change. Tests for
`WP_Site_Query` can now rely on better default expectations.
See #36566.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36566#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list