summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/request.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/request.php b/tests/lib/request.php
index b89bf92ece7..2760377fa48 100644
--- a/tests/lib/request.php
+++ b/tests/lib/request.php
@@ -240,7 +240,7 @@ class Test_Request extends PHPUnit_Framework_TestCase {
}
public function trustedDomainDataProvider() {
- $trustedHostTestList = array('host.one.test:8080', 'host.two.test:8080');
+ $trustedHostTestList = array('host.one.test', 'host.two.test', '[1fff:0:a88:85a3::ac1f]');
return array(
// empty defaults to true
array(null, 'host.one.test:8080', true),
@@ -249,8 +249,12 @@ class Test_Request extends PHPUnit_Framework_TestCase {
// trust list when defined
array($trustedHostTestList, 'host.two.test:8080', true),
- array($trustedHostTestList, 'host.two.test:9999', false),
+ array($trustedHostTestList, 'host.two.test:9999', true),
array($trustedHostTestList, 'host.three.test:8080', false),
+ array($trustedHostTestList, 'host.two.test:8080:aa:222', false),
+ array($trustedHostTestList, '[1fff:0:a88:85a3::ac1f]', true),
+ array($trustedHostTestList, '[1fff:0:a88:85a3::ac1f]:801', true),
+ array($trustedHostTestList, '[1fff:0:a88:85a3::ac1f]:801:34', false),
// trust localhost regardless of trust list
array($trustedHostTestList, 'localhost', true),