mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
Add port on Url to BaseUrl Test (#2226)
Added Urls with ports to the BaseUrl Test
This commit is contained in:
parent
9f15631883
commit
79bdff96c1
|
@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user