Declare user_email when setting up fixtures for `count_user_posts()` tests.

Because `setUpBeforeClass()` is called statically and creates its own factory
object, the iterator logic from previous tests is not carried over to these
fixtures, and we risk the possibility of user_email clashes when the tests are
run in certain limited configurations.

git-svn-id: https://develop.svn.wordpress.org/trunk@30512 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2014-11-22 15:04:07 +00:00
parent cfeae751a0
commit fa76c19ecb
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class Tests_User_CountUserPosts extends WP_UnitTestCase {
self::$user_id = $factory->user->create( array(
'role' => 'author',
'user_login' => 'count_user_posts_user',
'user_email' => 'count_user_posts_user@example.com',
) );
self::$post_ids = $factory->post->create_many( 4, array(