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 9f15631883
commit 79bdff96c1

View File

@ -47,37 +47,61 @@ class BaseUrlTest extends TestCase
public function urlProvider()
{
return [
['', ''],
['flarum.org', 'http://flarum.org'],
['flarum.org/', 'http://flarum.org'],
['http://flarum.org', 'http://flarum.org'],
['http://flarum.org/', 'http://flarum.org'],
['https://flarum.org', 'https://flarum.org'],
['http://flarum.org/index.php', 'http://flarum.org'],
['http://flarum.org/index.php/', 'http://flarum.org'],
['http://flarum.org/flarum', 'http://flarum.org/flarum'],
['http://flarum.org/flarum/index.php', 'http://flarum.org/flarum'],
['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', 'http://flarum.org'],
['flarum.org/', 'http://flarum.org'],
['http://flarum.org', 'http://flarum.org'],
['http://flarum.org/', 'http://flarum.org'],
['https://flarum.org', 'https://flarum.org'],
['http://flarum.org/index.php', 'http://flarum.org'],
['http://flarum.org/index.php/', 'http://flarum.org'],
['http://flarum.org/flarum', 'http://flarum.org/flarum'],
['http://flarum.org/flarum/index.php', 'http://flarum.org/flarum'],
['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'],
];
}
public function emailProvider()
{
return [
['flarum.org', 'noreply@flarum.org'],
['flarum.org/', 'noreply@flarum.org'],
['http://flarum.org', 'noreply@flarum.org'],
['http://flarum.org/', 'noreply@flarum.org'],
['https://flarum.org', 'noreply@flarum.org'],
['http://flarum.org/index.php', 'noreply@flarum.org'],
['http://flarum.org/index.php/', 'noreply@flarum.org'],
['http://flarum.org/flarum', 'noreply@flarum.org'],
['http://flarum.org/flarum/index.php', 'noreply@flarum.org'],
['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', 'noreply@flarum.org'],
['flarum.org/', 'noreply@flarum.org'],
['http://flarum.org', 'noreply@flarum.org'],
['http://flarum.org/', 'noreply@flarum.org'],
['https://flarum.org', 'noreply@flarum.org'],
['http://flarum.org/index.php', 'noreply@flarum.org'],
['http://flarum.org/index.php/', 'noreply@flarum.org'],
['http://flarum.org/flarum', 'noreply@flarum.org'],
['http://flarum.org/flarum/index.php', 'noreply@flarum.org'],
['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'],
];
}
}