aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-03 17:42:47 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-03 17:42:47 +0100
commitdacbc767f135cad5758b184ca501f529dc1b16b8 (patch)
tree7a75daf50c98e268e88be99f1791153004a31a4b
parent9ce4ceb9c16d0a03e18bf2a6b33cec8d0edd4dc9 (diff)
downloadforums-dacbc767f135cad5758b184ca501f529dc1b16b8.tar
forums-dacbc767f135cad5758b184ca501f529dc1b16b8.tar.gz
forums-dacbc767f135cad5758b184ca501f529dc1b16b8.tar.bz2
forums-dacbc767f135cad5758b184ca501f529dc1b16b8.tar.xz
forums-dacbc767f135cad5758b184ca501f529dc1b16b8.zip
[ticket/14448] Do not try to test remote upload timeout
PHPBB3-14448
-rw-r--r--tests/files/types_remote_test.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/files/types_remote_test.php b/tests/files/types_remote_test.php
index 96103ad046..3f32f9ce75 100644
--- a/tests/files/types_remote_test.php
+++ b/tests/files/types_remote_test.php
@@ -112,19 +112,6 @@ class phpbb_files_types_remote_test extends phpbb_test_case
$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()
{
$type_remote = new \phpbb\files\types\foo($this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path);