From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- tests/Selenium/bootstrap.php | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/Selenium/bootstrap.php b/tests/Selenium/bootstrap.php index 8c57571..9baf0c0 100644 --- a/tests/Selenium/bootstrap.php +++ b/tests/Selenium/bootstrap.php @@ -38,7 +38,7 @@ die("Fatal error: ini_set/set_include_path does not work."); } -$rcmail = rcmail::get_instance('test'); +$rcmail = rcmail::get_instance(0, 'test'); define('TESTS_URL', $rcmail->config->get('tests_url')); define('TESTS_BROWSER', $rcmail->config->get('tests_browser', 'firefox')); @@ -78,9 +78,9 @@ system(sprintf('cat %s %s | mysql -h %s -u %s --password=%s %s', realpath(INSTALL_PATH . '/SQL/mysql.initial.sql'), realpath(TESTS_DIR . 'Selenium/data/mysql.sql'), - escapeshellarg($dsn['host']), - escapeshellarg($dsn['user']), - escapeshellarg($dsn['pass']), + escapeshellarg($dsn['hostspec']), + escapeshellarg($dsn['username']), + escapeshellarg($dsn['password']), escapeshellarg($dsn['database']) )); } @@ -337,6 +337,11 @@ return $response; } + protected function getText($element) + { + return $element->text() ?: $element->attribute('textContent'); + } + protected function assertHasClass($classname, $element) { $this->assertContains($classname, $element->attribute('class')); -- Gitblit v1.9.1