diff options
Diffstat (limited to 'config/environment/ui-test.php')
-rw-r--r-- | config/environment/ui-test.php | 14 |
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); + }), + + ), + +); |