Make WordPress Core

Changeset 30512


Ignore:
Timestamp:
11/22/2014 03:04:07 PM (12 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/countUserPosts.php

    r30322 r30512  
    1515                        'role' => 'author',
    1616                        'user_login' => 'count_user_posts_user',
     17                        'user_email' => 'count_user_posts_user@example.com',
    1718                ) );
    1819
Note: See TracChangeset for help on using the changeset viewer.