public/phpmyadmin/test/selenium/ServerSettingsTest.php
/**
     * Tests whether hiding a database works or not
     *
     * @return void
     *
     * @group large
     */
Tests whether hiding a database works or not
@return void

@group large
Tests whether hiding a database works or not @return void @group large
public function testHideDatabase()
    {
        $this->byPartialLinkText("Features")->click();
        $this->waitAjax();
        $this->waitForElement('byXPath', "//a[contains(@href, '#Databases')]")->click();
        $ele = $this->waitForElement("byName", "Servers-1-hide_db");
        $this->moveto($ele);
        $ele->value($this->database_name);
        $this->_saveConfig();
        $this->assertFalse(
            $this->isElementPresent("byLinkText", $this->database_name)
        );
        $this->waitForElement("byName", "Servers-1-hide_db")->clear();
        $this->_saveConfig();
        $this->assertTrue(
            $this->isElementPresent("byLinkText", $this->database_name)
        );
    }
public function testHideDatabase ( ) { $ this -> byPartialLinkText ( " Features " ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> waitForElement ( 'byXPath' , " //a[contains(@href, '#Databases')] " ) -> click ( ) ; $ ele = $ this -> waitForElement ( " byName " , " Servers-1-hide_db " ) ; $ this -> moveto ( $ ele ) ; $ ele -> value ( $ this -> database_name ) ; $ this -> _saveConfig ( ) ; $ this -> assertFalse ( $ this -> isElementPresent ( " byLinkText " , $ this -> database_name ) ) ; $ this -> waitForElement ( " byName " , " Servers-1-hide_db " ) -> clear ( ) ; $ this -> _saveConfig ( ) ; $ this -> assertTrue ( $ this -> isElementPresent ( " byLinkText " , $ this -> database_name ) ) ; }
Tests whether hiding a database works or not
 @return void
Tests whether hiding a database works or not @return void