diff options
author | rxu <rxu@mail.ru> | 2019-12-29 02:12:36 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2019-12-29 12:59:24 +0700 |
commit | dcab0762210a4059cca7458344dcc1aeb0360c42 (patch) | |
tree | fbae8ee0429f1c6ebb29cd8af8c5f3d1d7450ea4 /tests/files | |
parent | 82e61f501abfa2768d7faac1ccd8d688c84e5e13 (diff) | |
download | forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar.gz forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar.bz2 forums-dcab0762210a4059cca7458344dcc1aeb0360c42.tar.xz forums-dcab0762210a4059cca7458344dcc1aeb0360c42.zip |
[ticket/16276] Further fix PHP nightly tests
PHPBB3-16276
Diffstat (limited to 'tests/files')
-rw-r--r-- | tests/files/types_base_test.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/files/types_base_test.php b/tests/files/types_base_test.php index a5533f2bc0..28c5a12c3d 100644 --- a/tests/files/types_base_test.php +++ b/tests/files/types_base_test.php @@ -79,6 +79,7 @@ class phpbb_files_types_base_test extends phpbb_test_case $php_ini->expects($this->any()) ->method('getString') ->willReturn($max_filesize); + $upload = new \phpbb\files\upload($this->filesystem, $this->factory, $this->language, $php_ini, $this->request); $type_form = new \phpbb\files\types\local($this->factory, $this->language, $php_ini, $this->request); $file = $this->getMockBuilder('\phpbb\files\filespec') ->disableOriginalConstructor() @@ -86,6 +87,7 @@ class phpbb_files_types_base_test extends phpbb_test_case $file->expects($this->any()) ->method('get') ->willReturn($filename); + $type_form->set_upload($upload); $type_form->check_upload_size($file); $this->assertSame($expected, $file->error); |