mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
3848c7e8e6
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()
|
public function data_get_max_file_size()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array('', 'http://example.com/foo/bar.png'),
|
array('', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('2k', 'http://example.com/foo/bar.png'),
|
array('2k', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('500k', 'http://example.com/foo/bar.png'),
|
array('500k', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('500M', 'http://example.com/foo/bar.png'),
|
array('500M', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('500m', 'http://example.com/foo/bar.png'),
|
array('500m', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('500k', 'http://google.com/?.png', array('DISALLOWED_EXTENSION', 'DISALLOWED_CONTENT')),
|
array('500k', 'http://google.com/?.png', array('DISALLOWED_EXTENSION', 'DISALLOWED_CONTENT')),
|
||||||
array('1', 'http://google.com/?.png', array('WRONG_FILESIZE')),
|
array('1', 'http://google.com/?.png', array('WRONG_FILESIZE')),
|
||||||
array('500g', 'http://example.com/foo/bar.png'),
|
array('500g', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('foobar', 'http://example.com/foo/bar.png'),
|
array('foobar', 'http://phpbb.com/foo/bar.png'),
|
||||||
array('-5k', 'http://example.com/foo/bar.png'),
|
array('-5k', 'http://phpbb.com/foo/bar.png'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue