Skip to:
Content

BuddyPress.org

Changeset 11972


Ignore:
Timestamp:
04/13/2018 06:27:30 PM (7 years ago)
Author:
r-a-y
Message:

Unit Tests: After r11970, fix fatal error when running WordPress 4.5.

grant_super_admin() doesn't exist for single-site on WP 4.5.

Thanks Travis!

See #7610.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/groups/user_can.php

    r11970 r11972  
    2929     */
    3030    public function test_user_cannot_join_public_group_if_already_member_even_superadmin() {
     31        if ( ! is_multisite() ) {
     32            return;
     33        }
     34
    3135        $g1 = $this->factory->group->create( array(
    3236            'status'      => 'public'
     
    155159     */
    156160    public function test_user_cannot_receive_invitation_to_private_group_if_already_member_even_superadmin() {
     161        if ( ! is_multisite() ) {
     162            return;
     163        }
     164
    157165        $g1 = $this->factory->group->create( array(
    158166            'status'      => 'private'
Note: See TracChangeset for help on using the changeset viewer.