public/phpmyadmin/test/selenium/CreateDropDatabaseTest.php
/**
     * Drops a database, called after testCreateDropDatabase
     *
     * @return void
     */
Drops a database, called after testCreateDropDatabase
@return void
Drops a database called after testCreateDropDatabase @return void
private function _dropDatabase()
    {
        $this->gotoHomepage();
        $this->byPartialLinkText('Databases')->click();
        $this->waitAjax();
        $this->scrollToBottom();
        $this->byCssSelector(
            "input[name='selected_dbs[]'][value='" . $this->database_name . "']"
        )->click();
        $this->byCssSelector("button.mult_submit")->click();
        $this->byCssSelector("button.submitOK")->click();
        $this->waitForElementNotPresent(
            "byCssSelector",
            "input[name='selected_dbs[]'][value='" . $this->database_name . "']"
        );
        $this->waitForElement(
            "byCssSelector", "span.ajax_notification div.success"
        );
        $result = $this->dbQuery(
            'SHOW DATABASES LIKE \'' . $this->database_name . '\';'
        );
        $this->assertEquals(0, $result->num_rows);
    }
private function _dropDatabase ( ) { $ this -> gotoHomepage ( ) ; $ this -> byPartialLinkText ( 'Databases' ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> scrollToBottom ( ) ; $ this -> byCssSelector ( " input[name='selected_dbs[]'][value=' " . $ this -> database_name . " '] " ) -> click ( ) ; $ this -> byCssSelector ( " button.mult_submit " ) -> click ( ) ; $ this -> byCssSelector ( " button.submitOK " ) -> click ( ) ; $ this -> waitForElementNotPresent ( " byCssSelector " , " input[name='selected_dbs[]'][value=' " . $ this -> database_name . " '] " ) ; $ this -> waitForElement ( " byCssSelector " , " span.ajax_notification div.success " ) ; $ result = $ this -> dbQuery ( 'SHOW DATABASES LIKE \'' . $ this -> database_name . '\';' ) ; $ this -> assertEquals ( 0 , $ result -> num_rows ) ; }
Drops a database, called after testCreateDropDatabase
 @return void
Drops a database called after testCreateDropDatabase @return void