[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/tests/phpunit/testcases/routing/ -> anonymous.php (source)

   1  <?php
   2  /**
   3   * @group routing
   4   */
   5  class BP_Tests_Routing_Anonymous extends BP_UnitTestCase {
   6  	function test_wordpress_page() {
   7          $this->go_to( '/' );
   8          $this->assertEmpty( bp_current_component() );
   9      }
  10  
  11  	function test_nav_menu() {
  12          $this->go_to( '/' );
  13          $nav = buddypress()->members->nav->get_item_nav();
  14          $this->assertEmpty( $nav );
  15      }
  16  }


Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1