From 9d19c3807d02957023549f9e4584d2c37c8deebb Mon Sep 17 00:00:00 2001 From: diosmosis Date: Fri, 16 Oct 2015 19:27:19 -0700 Subject: 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). --- config/environment/ui-test.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config/environment/ui-test.php (limited to 'config') 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 @@ + 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); + }), + + ), + +); -- cgit v1.2.3