Skip to:
Content

BuddyPress.org

Changeset 8562


Ignore:
Timestamp:
07/09/2014 01:13:32 AM (12 years ago)
Author:
boonebgorges
Message:

Don't use 'admin' as the username of the user when running suggestions tests

On multisite, this user is granted super admin privileges, which breaks some of
the tests.

Fixes #5744

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/apis/suggestions.php

    r8557 r8562  
    1919                $this->current_user = $this->create_user( array(
    2020                        'display_name' => 'Katie Parker',
    21                         'user_login'   => 'admin',
     21                        'user_login'   => 'katie',
    2222                ) );
    2323
     
    163163                $this->assertFalse( is_wp_error( $suggestions ) );
    164164                $this->assertEquals( 1, count( $suggestions ) );
    165                 $this->assertSame( 'admin', $suggestions[0]->ID );
     165                $this->assertSame( 'katie', $suggestions[0]->ID );
    166166        }
    167167
Note: See TracChangeset for help on using the changeset viewer.