[ticket/13904] Fix remote upload functional tests

PHPBB3-13904
This commit is contained in:
Marc Alexander 2015-07-15 21:30:42 +02:00
parent 57ccfe0c48
commit 759a1a09fa
2 changed files with 2 additions and 1 deletions

View file

@ -234,7 +234,7 @@ class remote extends base
/** @var filespec $file */ /** @var filespec $file */
$file = $this->factory->get('filespec') $file = $this->factory->get('filespec')
->set_upload_ary($upload_ary) ->set_upload_ary($upload_ary)
->set_upload_namespace($this); ->set_upload_namespace($this->upload);
$this->upload->common_checks($file); $this->upload->common_checks($file);
return $file; return $file;

View file

@ -56,6 +56,7 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case
$container->set('files.filespec', new \phpbb\files\filespec($this->filesystem, $this->language, $this->phpbb_root_path)); $container->set('files.filespec', new \phpbb\files\filespec($this->filesystem, $this->language, $this->phpbb_root_path));
$this->factory = new \phpbb\files\factory($container); $this->factory = new \phpbb\files\factory($container);
$container->set('files.factory', $this->factory); $container->set('files.factory', $this->factory);
$container->set('files.types.remote', new \phpbb\files\types\remote($this->factory, $this->language, $this->request));
$this->phpbb_root_path = $phpbb_root_path; $this->phpbb_root_path = $phpbb_root_path;
} }