public/phpmyadmin/test/classes/Server/UsersTest.php
/**
     * Test for Users::getHtmlForSubMenusOnUsersPage
     *
     * @return void
     */
Test for Users::getHtmlForSubMenusOnUsersPage
@return void
Test for Users :: getHtmlForSubMenusOnUsersPage @return void
public function testGetHtmlForSubMenusOnUsersPage()
    {
        $GLOBALS['server'] = 1;
        $GLOBALS['cfg']['ServerDefault'] = 1;
        $GLOBALS['cfg']['Server']['DisableIS'] = false;
        $html = Users::getHtmlForSubMenusOnUsersPage('server_privileges.php');
        $this->assertContains(
            '<ul id="topmenu2">',
            $html
        );
        $this->assertContains(
            '<a class="tabactive" href="server_privileges.php',
            $html
        );
        $this->assertContains(
            __('User accounts overview'),
            $html
        );
        $this->assertContains(
            '<a href="server_user_groups.php',
            $html
        );
        $this->assertContains(
            __('User groups'),
            $html
        );
    }
public function testGetHtmlForSubMenusOnUsersPage ( ) { $ GLOBALS [ 'server' ] = 1 ; $ GLOBALS [ 'cfg' ] [ 'ServerDefault' ] = 1 ; $ GLOBALS [ 'cfg' ] [ 'Server' ] [ 'DisableIS' ] = false ; $ html = Users :: getHtmlForSubMenusOnUsersPage ( 'server_privileges.php' ) ; $ this -> assertContains ( '<ul id="topmenu2">' , $ html ) ; $ this -> assertContains ( '<a class="tabactive" href="server_privileges.php' , $ html ) ; $ this -> assertContains ( __ ( 'User accounts overview' ) , $ html ) ; $ this -> assertContains ( '<a href="server_user_groups.php' , $ html ) ; $ this -> assertContains ( __ ( 'User groups' ) , $ html ) ; }
Test for Users::getHtmlForSubMenusOnUsersPage
 @return void
Test for Users :: getHtmlForSubMenusOnUsersPage @return void
//validate 1: topmenu2 //validate 2: tabactive for server_privileges.php //validate 3: not-active for server_user_groups.php