mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14921] Use phpbb.com URL to prevent test failures for remote URLs
PHPBB3-14921
This commit is contained in:
parent
544c7c4e08
commit
de6942e117
1 changed files with 8 additions and 8 deletions
|
@ -84,16 +84,16 @@ class phpbb_files_types_remote_test extends phpbb_test_case
|
|||
public function data_get_max_file_size()
|
||||
{
|
||||
return array(
|
||||
array('', 'http://example.com/foo/bar.png'),
|
||||
array('2k', 'http://example.com/foo/bar.png'),
|
||||
array('500k', 'http://example.com/foo/bar.png'),
|
||||
array('500M', 'http://example.com/foo/bar.png'),
|
||||
array('500m', 'http://example.com/foo/bar.png'),
|
||||
array('', 'http://phpbb.com/foo/bar.png'),
|
||||
array('2k', 'http://phpbb.com/foo/bar.png'),
|
||||
array('500k', 'http://phpbb.com/foo/bar.png'),
|
||||
array('500M', 'http://phpbb.com/foo/bar.png'),
|
||||
array('500m', 'http://phpbb.com/foo/bar.png'),
|
||||
array('500k', 'http://google.com/?.png', array('DISALLOWED_EXTENSION', 'DISALLOWED_CONTENT')),
|
||||
array('1', 'http://google.com/?.png', array('WRONG_FILESIZE')),
|
||||
array('500g', 'http://example.com/foo/bar.png'),
|
||||
array('foobar', 'http://example.com/foo/bar.png'),
|
||||
array('-5k', 'http://example.com/foo/bar.png'),
|
||||
array('500g', 'http://phpbb.com/foo/bar.png'),
|
||||
array('foobar', 'http://phpbb.com/foo/bar.png'),
|
||||
array('-5k', 'http://phpbb.com/foo/bar.png'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue