So that the credentials do not have to be repeated in every test. Signed-off-by: Michal Čihař <michal@cihar.com>
37 lines
784 B
PHP
37 lines
784 B
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* Selenium TestCase for SQL querry window related tests
|
|
*
|
|
* @package PhpMyAdmin-test
|
|
* @subpackage Selenium
|
|
*/
|
|
|
|
require_once 'TestBase.php';
|
|
|
|
/**
|
|
* PmaSeleniumXSSTest class
|
|
*
|
|
* @package PhpMyAdmin-test
|
|
* @subpackage Selenium
|
|
*/
|
|
class PMA_SeleniumXSSTest extends PMA_SeleniumBase
|
|
{
|
|
/**
|
|
* Tests the SQL query tab with a null query
|
|
*
|
|
* @return void
|
|
*
|
|
* @group large
|
|
*/
|
|
public function testQueryTabWithNullValue()
|
|
{
|
|
$this->login();
|
|
$this->byLinkText("SQL")->click();
|
|
$this->waitForElement("byId", "queryboxf");
|
|
$this->byId("button_submit_query")->click();
|
|
$this->assertEquals("Missing value in the form!", $this->alertText());
|
|
}
|
|
}
|
|
?>
|