Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 13fc55d

Browse files
andrewnicolsOndraM
authored andcommitted
Allow specification of alternate host for fixtures
1 parent 9f3fc33 commit 13fc55d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/functional/WebDriverTestCase.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ public static function skipForJsonWireProtocol($message = 'Not supported by Json
139139
*/
140140
protected function getTestPageUrl($path)
141141
{
142-
return 'http://localhost:8000/' . $path;
142+
$host = 'http://localhost:8000';
143+
if ($alternateHost = getenv('FIXTURES_HOST')) {
144+
$host = $alternateHost;
145+
}
146+
147+
return $host . '/' . $path;
143148
}
144149

145150
protected function setUpSauceLabs()

0 commit comments

Comments
 (0)