diff options
author | diosmosis <benaka@piwik.pro> | 2015-10-17 05:27:19 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-27 07:46:53 +0300 |
commit | 9d19c3807d02957023549f9e4584d2c37c8deebb (patch) | |
tree | 3ae6cf8907e0663cf09c3b43333d4d385608b51d /config | |
parent | a37c5c114405a1a795e68ef1e84e03a46f0f50cd (diff) |
Allow extra environments to be specified through testing environment variables, add a new one for UI tests call ui-test.php, use to remove port from localhost in UI tests, and fix a bug in ContainerFactory (config/config.php should be applied after environment files).
Diffstat (limited to 'config')
-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); + }), + + ), + +); |