#5744 closed defect (bug) (fixed)
Multisite suggestions tests should not use 'admin' as current_user username
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 8562: