Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-12-29 14:00:15 +0300
committerAleksander Machniak <alec@alec.pl>2019-12-29 14:00:15 +0300
commit0b9ff6426ee6ad27aff038a582aefd4b023bdbca (patch)
tree09f99352a6f2c0bcf302c848d7ab3117f2d26f1e /program
parent47d9ed6d0c6bd8cb3ba551555ba8995a244cfcd0 (diff)
Rewrite Selenium tests with use of laravel/dusk
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 535da2e09..83f945fce 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -73,6 +73,11 @@ class rcmail extends rcube
static function get_instance($mode = 0, $env = '')
{
if (!self::$instance || !is_a(self::$instance, 'rcmail')) {
+ // In cli-server mode env=test
+ if ($env === null && php_sapi_name() == 'cli-server') {
+ $env = 'test';
+ }
+
self::$instance = new rcmail($env);
// init AFTER object was linked with self::$instance
self::$instance->startup();