public/phpmyadmin/test/selenium/XssTest.php
/**
     * Tests the SQL query tab with a null query
     *
     * @return void
     *
     * @group large
     */
Tests the SQL query tab with a null query
@return void

@group large
Tests the SQL query tab with a null query @return void @group large
public function testQueryTabWithNullValue()
    {
        if (mb_strtolower($this->getBrowser()) == 'safari') {
            $this->markTestSkipped('Alerts not supported on Safari browser.');
        }
        $this->waitForElement('byPartialLinkText', "SQL")->click();
        $this->waitAjax();
        $this->waitForElement("byId", "queryboxf");
        $this->byId("button_submit_query")->click();
        $this->assertEquals("Missing value in the form!", $this->alertText());
    }
public function testQueryTabWithNullValue ( ) { if ( mb_strtolower ( $ this -> getBrowser ( ) ) == 'safari' ) { $ this -> markTestSkipped ( 'Alerts not supported on Safari browser.' ) ; } $ this -> waitForElement ( 'byPartialLinkText' , " SQL " ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> waitForElement ( " byId " , " queryboxf " ) ; $ this -> byId ( " button_submit_query " ) -> click ( ) ; $ this -> assertEquals ( " Missing value in the form! " , $ this -> alertText ( ) ) ; }
Tests the SQL query tab with a null query
 @return void
Tests the SQL query tab with a null query @return void