Translated using Weblate (Armenian)
[phpmyadmin.git] / test / AllSeleniumTests.php
blobdcafe1f9d1df16b827224df912943479110604b6
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * runs all defined Selenium tests
6 * @package PhpMyAdmin-test
7 * @subpackage Selenium
8 */
10 require_once 'PHPUnit/TextUI/TestRunner.php';
11 require_once __DIR__ . '/selenium/PmaSeleniumLoginTest.php';
12 require_once __DIR__ . '/selenium/PmaSeleniumXssTest.php';
13 require_once __DIR__ . '/selenium/PmaSeleniumPrivilegesTest.php';
14 require_once __DIR__ . '/selenium/PmaSeleniumCreateDropDatabaseTest.php';
15 require_once __DIR__ . '/selenium/PmaSeleniumCreateRemoveUserTest.php';
17 /**
18 * AllSeleniumTests class
20 * Runs all the selenium test cases
22 * @package PhpMyAdmin-test
23 * @subpackage Selenium
25 class AllSeleniumTests
27 /**
28 * Main method
30 * @return void
32 public static function main()
34 $parameters = array();
35 PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
38 /**
39 * Creates a SeleniumTestSuite and add all the selenium test cases to it
41 * @return PHPUnit_Extensions_SeleniumTestSuite
43 public static function suite()
45 $suite = new PHPUnit_Extensions_SeleniumTestSuite('phpMyAdmin');
47 $suite->addTestSuite('PmaSeleniumLoginTest');
48 $suite->addTestSuite('PmaSeleniumXssTest');
49 $suite->addTestSuite('PmaSeleniumPrivilegesTest');
50 $suite->addTestSuite('PmaSeleniumCreateDropDatabaseTest');
51 $suite->addTestSuite('PmaSeleniumCreateRemoveUserTest');
52 return $suite;