Add port on Url to BaseUrl Test (#2226)

Added Urls with ports to the BaseUrl Test
This commit is contained in:
Matt Kilgore 2020-07-10 06:17:12 -04:00 committed by GitHub
parent d189272473
commit 36eb5cc5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,18 @@ class BaseUrlTest extends TestCase
['http://flarum.org/flarum/index.php/', 'http://flarum.org/flarum'],
['sub.flarum.org', 'http://sub.flarum.org'],
['http://sub.flarum.org', 'http://sub.flarum.org'],
['flarum.org:8000', 'http://flarum.org:8000'],
['flarum.org:8000/', 'http://flarum.org:8000'],
['http://flarum.org:8000', 'http://flarum.org:8000'],
['http://flarum.org:8000/', 'http://flarum.org:8000'],
['https://flarum.org:8000', 'https://flarum.org:8000'],
['http://flarum.org:8000/index.php', 'http://flarum.org:8000'],
['http://flarum.org:8000/index.php/', 'http://flarum.org:8000'],
['http://flarum.org:8000/flarum', 'http://flarum.org:8000/flarum'],
['http://flarum.org:8000/flarum/index.php', 'http://flarum.org:8000/flarum'],
['http://flarum.org:8000/flarum/index.php/', 'http://flarum.org:8000/flarum'],
['sub.flarum.org:8000', 'http://sub.flarum.org:8000'],
['http://sub.flarum.org:8000', 'http://sub.flarum.org:8000'],
];
}
@ -78,6 +90,18 @@ class BaseUrlTest extends TestCase
['http://flarum.org/flarum/index.php/', 'noreply@flarum.org'],
['sub.flarum.org', 'noreply@sub.flarum.org'],
['http://sub.flarum.org', 'noreply@sub.flarum.org'],
['flarum.org:8000', 'noreply@flarum.org'],
['flarum.org:8000/', 'noreply@flarum.org'],
['http://flarum.org:8000', 'noreply@flarum.org'],
['http://flarum.org:8000/', 'noreply@flarum.org'],
['https://flarum.org:8000', 'noreply@flarum.org'],
['http://flarum.org:8000/index.php', 'noreply@flarum.org'],
['http://flarum.org:8000/index.php/', 'noreply@flarum.org'],
['http://flarum.org:8000/flarum', 'noreply@flarum.org'],
['http://flarum.org:8000/flarum/index.php', 'noreply@flarum.org'],
['http://flarum.org:8000/flarum/index.php/', 'noreply@flarum.org'],
['sub.flarum.org:8000', 'noreply@sub.flarum.org'],
['http://sub.flarum.org:8000', 'noreply@sub.flarum.org'],
];
}
}