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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environment/ui-test.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/environment/ui-test.php b/config/environment/ui-test.php
new file mode 100644
index 0000000000..738d1556db
--- /dev/null
+++ b/config/environment/ui-test.php
@@ -0,0 +1,14 @@
+<?php
+
+return array(
+
+ 'observers.global' => array(
+
+ array('Request.dispatch.end', function (&$result) {
+ // remove the port from URLs if any so UI tests won't fail if the port isn't 80
+ $result = preg_replace('/localhost:[0-9]+/', 'localhost', $result);
+ }),
+
+ ),
+
+);