[buddypress-trac] [BuddyPress Trac] #5744: Multisite suggestions tests should not use 'admin' as current_user username
buddypress-trac
noreply at wordpress.org
Wed Jul 9 01:12:19 UTC 2014
#5744: Multisite suggestions tests should not use 'admin' as current_user username
--------------------------+-----------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.1
Component: Unit Tests | Version:
Severity: normal | Keywords:
--------------------------+-----------------
There's a quirk in the core multisite unit test suite such that when you
run `create_user()` with the username 'admin', that user becomes a super
admin on the network; as such, the user has the 'bp_moderate' cap, and is
able to get suggestions for all members. This breaks some of the
suggestions unit tests, which assume that the logged-in user will not have
access to the members of certain groups.
Solution appears to be to use a different username than 'admin' for the
user that the tests are run as.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5744>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list