mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/14448] Do not try to test remote upload timeout
PHPBB3-14448
This commit is contained in:
parent
9ce4ceb9c1
commit
dacbc767f1
1 changed files with 0 additions and 13 deletions
|
@ -112,19 +112,6 @@ class phpbb_files_types_remote_test extends phpbb_test_case
|
||||||
$this->assertSame($expected, $file->error);
|
$this->assertSame($expected, $file->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_upload_timeout()
|
|
||||||
{
|
|
||||||
$type_remote = new \phpbb\files\types\remote($this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path);
|
|
||||||
$upload = new \phpbb\files\upload($this->filesystem, $this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path);
|
|
||||||
$upload->set_allowed_extensions(array('png'));
|
|
||||||
$type_remote->set_upload($upload);
|
|
||||||
$upload->upload_timeout = 0.001;
|
|
||||||
|
|
||||||
$file = $type_remote->upload('http://google.com/?.png');
|
|
||||||
|
|
||||||
$this->assertSame(array('REMOTE_UPLOAD_TIMEOUT'), $file->error);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function test_upload_wrong_path()
|
public function test_upload_wrong_path()
|
||||||
{
|
{
|
||||||
$type_remote = new \phpbb\files\types\foo($this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path);
|
$type_remote = new \phpbb\files\types\foo($this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path);
|
||||||
|
|
Loading…
Add table
Reference in a new issue