| | |
| | | define('TESTS_DIR', dirname(__FILE__) . '/'); |
| | | |
| | | if (@is_dir(TESTS_DIR . 'config')) { |
| | | define('RCMAIL_CONFIG_DIR', TESTS_DIR . 'config'); |
| | | define('RCUBE_CONFIG_DIR', TESTS_DIR . 'config'); |
| | | } |
| | | |
| | | require_once(INSTALL_PATH . 'program/include/iniset.php'); |
| | |
| | | die("Fatal error: ini_set/set_include_path does not work."); |
| | | } |
| | | |
| | | $rcmail = rcube::get_instance(); |
| | | $rcmail = rcube::get_instance('test'); |
| | | |
| | | define('TESTS_URL', $rcmail->config->get('tests_url')); |
| | | define('TESTS_BROWSER', $rcmail->config->get('tests_browser', 'firefox')); |
| | |
| | | |
| | | // @TODO: remove user record from DB before running tests |
| | | // @TODO: make sure mailbox has some content (always the same) or is empty |
| | | // @TODO: plugins: enable all? |
| | | |
| | | /** |
| | | * Base class for all tests in this directory |
| | |
| | | { |
| | | // $this->rc = rcube::get_instance(); |
| | | $this->setBrowser(TESTS_BROWSER); |
| | | $this->setBrowserUrl(TESTS_URL); |
| | | |
| | | // Set root to our index.html, for better performance |
| | | // See https://github.com/sebastianbergmann/phpunit-selenium/issues/217 |
| | | $this->setBrowserUrl(TESTS_URL . '/tests/Selenium'); |
| | | } |
| | | |
| | | protected function login() |