public/phpmyadmin/test/selenium/CreateDropDatabaseTest.php
/**
     * Creates a database and drops it
     *
     * @return void
     *
     * @group large
     */
Creates a database and drops it
@return void

@group large
Creates a database and drops it @return void @group large
public function testCreateDropDatabase()
    {
        $this->dbQuery(
            'DROP DATABASE IF EXISTS ' . $this->database_name . ';'
        );
        $this->waitForElement('byPartialLinkText','Databases')->click();
        $this->waitAjax();
        $element = $this->waitForElement('byId', 'text_create_db');
        $element->clear();
        $element->value($this->database_name);
        $this->byId("buttonGo")->click();
        $element = $this->waitForElement('byLinkText', 'Database: ' . $this->database_name);
        $result = $this->dbQuery(
            'SHOW DATABASES LIKE \'' . $this->database_name . '\';'
        );
        $this->assertEquals(1, $result->num_rows);
        $this->_dropDatabase();
    }
public function testCreateDropDatabase ( ) { $ this -> dbQuery ( 'DROP DATABASE IF EXISTS ' . $ this -> database_name . ';' ) ; $ this -> waitForElement ( 'byPartialLinkText' , 'Databases' ) -> click ( ) ; $ this -> waitAjax ( ) ; $ element = $ this -> waitForElement ( 'byId' , 'text_create_db' ) ; $ element -> clear ( ) ; $ element -> value ( $ this -> database_name ) ; $ this -> byId ( " buttonGo " ) -> click ( ) ; $ element = $ this -> waitForElement ( 'byLinkText' , 'Database: ' . $ this -> database_name ) ; $ result = $ this -> dbQuery ( 'SHOW DATABASES LIKE \'' . $ this -> database_name . '\';' ) ; $ this -> assertEquals ( 1 , $ result -> num_rows ) ; $ this -> _dropDatabase ( ) ; }
Creates a database and drops it
 @return void
Creates a database and drops it @return void
// Drop database if it exists