@@ -11,7 +11,7 @@ class ConfigTest extends TestCase
1111 public function testGivenLocalOriginHttpLoopbackAddressWhenParsingLocalOriginThenItIsReplacedWithHttps ($ origin ) : void
1212 {
1313 $ config = Config::fromArray (['origin_url ' => $ origin ])->allowHttpOnLocalhost ();
14- $ this ->assertEquals ($ config -> get ( ' origin_url ' ), preg_replace ('/^http:/ ' , 'https: ' , $ origin ));
14+ $ this ->assertEquals (preg_replace ('/^http:/ ' , 'https: ' , $ origin), $ config -> get ( ' origin_url ' ));
1515 }
1616
1717 /**
@@ -20,7 +20,7 @@ public function testGivenLocalOriginHttpLoopbackAddressWhenParsingLocalOriginThe
2020 public function testGivenLocalOriginHttpsLoopbackAddressWhenParsingLocalOriginThenOriginalIsKept ($ origin ) : void
2121 {
2222 $ config = Config::fromArray (['origin_url ' => $ origin ])->allowHttpOnLocalhost ();
23- $ this ->assertEquals ($ config ->get ('origin_url ' ), $ origin );
23+ $ this ->assertEquals ($ origin , $ config ->get ('origin_url ' ));
2424 }
2525
2626 /**
@@ -29,7 +29,7 @@ public function testGivenLocalOriginHttpsLoopbackAddressWhenParsingLocalOriginTh
2929 public function testGivenLocalOriginHttpNonLoopbackAddressWhenParsingLocalOriginThenOriginalIsKept ($ origin ) : void
3030 {
3131 $ config = Config::fromArray (['origin_url ' => $ origin ])->allowHttpOnLocalhost ();
32- $ this ->assertEquals ($ config ->get ('origin_url ' ), $ origin );
32+ $ this ->assertEquals ($ origin , $ config ->get ('origin_url ' ));
3333 }
3434
3535 /**
@@ -49,7 +49,9 @@ public static function localOriginHttpLoopbackAddress(): array
4949 ["http://127.0.0.1 " ],
5050 ["http://127.0.0.1:8080 " ],
5151 ["http://[::1] " ],
52- ["http://[::1]:8080 " ]
52+ ["http://[::1]:8080 " ],
53+ ["http://[0000:0000:0000:0000:0000:0000:0000:0001] " ],
54+ ["http://[0000:0000:0000:0000:0000:0000:0000:0001]:8080 " ]
5355 ];
5456 }
5557
@@ -61,7 +63,9 @@ public static function localOriginHttpsLoopbackAddress(): array
6163 ["https://127.0.0.1 " ],
6264 ["https://127.0.0.1:8080 " ],
6365 ["https://[::1] " ],
64- ["https://[::1]:8080 " ]
66+ ["https://[::1]:8080 " ],
67+ ["https://[0000:0000:0000:0000:0000:0000:0000:0001] " ],
68+ ["https://[0000:0000:0000:0000:0000:0000:0000:0001]:8080 " ]
6569 ];
6670 }
6771
0 commit comments