1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 23:11:45 +02:00

[ticket/16276] Further fix PHP nightly tests

PHPBB3-16276
This commit is contained in:
rxu
2019-12-29 02:12:36 +07:00
parent 82e61f501a
commit dcab076221
15 changed files with 41 additions and 18 deletions

View File

@@ -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);