Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/13/2016 02:27:25 AM (8 years ago)
Author:
boonebgorges
Message:

Tests: Don't use assertArrayHasKey() on bp_nav.

The nav backward compatibility layer does not support this method for all
versions of PHP.

See #6534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/routing/core.php

    r10745 r10753  
    2828    function test_nav_menu() {
    2929        $this->go_to( '/' );
    30         $this->assertArrayHasKey( 'activity', buddypress()->bp_nav );
    31         $this->assertArrayHasKey( 'profile',  buddypress()->bp_nav );
     30        $this->assertTrue( isset( buddypress()->bp_nav['activity'] ) );
     31        $this->assertTrue( isset( buddypress()->bp_nav['profile'] ) );
    3232    }
    3333}
Note: See TracChangeset for help on using the changeset viewer.