Wordpress/tests/phpunit/includes/factory
Jeremy Felt 4429638da6 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@37418 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-11 19:21:22 +00:00
..
class-wp-unittest-factory-callback-after-create.php
class-wp-unittest-factory-for-attachment.php
class-wp-unittest-factory-for-blog.php Tests: Set `public` to `1` in the default blog factory 2016-05-11 19:21:22 +00:00
class-wp-unittest-factory-for-comment.php
class-wp-unittest-factory-for-network.php
class-wp-unittest-factory-for-post.php
class-wp-unittest-factory-for-term.php
class-wp-unittest-factory-for-thing.php Tests: Use the same incrementor for all fields belonging to a given text fixture. 2016-04-22 14:35:52 +00:00
class-wp-unittest-factory-for-user.php
class-wp-unittest-factory.php Build/Test Tools: Document PHP unit test classes. 2016-03-05 19:47:41 +00:00
class-wp-unittest-generator-sequence.php Tests: Use the same incrementor for all fields belonging to a given text fixture. 2016-04-22 14:35:52 +00:00