public/phpmyadmin/test/selenium/SqlQueryTest.php
/**
     * Test typing a SQL query on Table SQL page and submitting it
     *
     * @return void
     */
Test typing a SQL query on Table SQL page and submitting it
@return void
Test typing a SQL query on Table SQL page and submitting it @return void
public function testTableSqlQuery()
    {
        $this->navigateTable('test_table');
        $this->waitForElement('byPartialLinkText', 'SQL')->click();
        $this->waitAjax();
        $this->typeInTextArea('SELECT * FROM `test_table` WHERE `val` NOT IN (2, 3);');
        $this->byId('button_submit_query')->click();
        $this->waitAjax();
        $this->waitForElement('byCssSelector', 'table.table_results');
        $this->assertEquals(
            3,
            $this->getCellByTableClass('table_results', 1, 5)
        );
        $this->assertEquals(
            4,
            $this->getCellByTableClass('table_results', 2, 5)
        );
        $this->assertEquals(
            4,
            $this->getCellByTableClass('table_results', 1, 6)
        );
        $this->assertEquals(
            5,
            $this->getCellByTableClass('table_results', 2, 6)
        );
        $this->_testInlineEdit();
    }
public function testTableSqlQuery ( ) { $ this -> navigateTable ( 'test_table' ) ; $ this -> waitForElement ( 'byPartialLinkText' , 'SQL' ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> typeInTextArea ( 'SELECT * FROM `test_table` WHERE `val` NOT IN (2, 3);' ) ; $ this -> byId ( 'button_submit_query' ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> waitForElement ( 'byCssSelector' , 'table.table_results' ) ; $ this -> assertEquals ( 3 , $ this -> getCellByTableClass ( 'table_results' , 1 , 5 ) ) ; $ this -> assertEquals ( 4 , $ this -> getCellByTableClass ( 'table_results' , 2 , 5 ) ) ; $ this -> assertEquals ( 4 , $ this -> getCellByTableClass ( 'table_results' , 1 , 6 ) ) ; $ this -> assertEquals ( 5 , $ this -> getCellByTableClass ( 'table_results' , 2 , 6 ) ) ; $ this -> _testInlineEdit ( ) ; }
Test typing a SQL query on Table SQL page and submitting it
 @return void
Test typing a SQL query on Table SQL page and submitting it @return void
// test inline edit button