diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-15 15:56:43 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-15 15:56:43 +0100 |
commit | df86f466e0245669e5cf97a162378fb653c72422 (patch) | |
tree | 49cb28d873456c0861cc023355449dd0c539686f /tests/upload/fileupload_test.php | |
parent | 348554cc297bf906a0510894986bb60041a5db9a (diff) | |
download | forums-df86f466e0245669e5cf97a162378fb653c72422.tar forums-df86f466e0245669e5cf97a162378fb653c72422.tar.gz forums-df86f466e0245669e5cf97a162378fb653c72422.tar.bz2 forums-df86f466e0245669e5cf97a162378fb653c72422.tar.xz forums-df86f466e0245669e5cf97a162378fb653c72422.zip |
[ticket/10939] Modified fileupload tests to deal with new behaviour
PHPBB3-10939
Diffstat (limited to 'tests/upload/fileupload_test.php')
-rw-r--r-- | tests/upload/fileupload_test.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/upload/fileupload_test.php b/tests/upload/fileupload_test.php index 076855ab56..1665c493be 100644 --- a/tests/upload/fileupload_test.php +++ b/tests/upload/fileupload_test.php @@ -19,7 +19,8 @@ class phpbb_fileupload_test extends phpbb_test_case { // Global $config required by unique_id // Global $user required by several functions dealing with translations - global $config, $user; + // Global $request required by form_upload, local_upload and is_valid + global $config, $user, $request; if (!is_array($config)) { @@ -31,6 +32,9 @@ class phpbb_fileupload_test extends phpbb_test_case $user = new phpbb_mock_user(); $user->lang = new phpbb_mock_lang(); + + $request = new phpbb_mock_request(); + $this->path = __DIR__ . '/fixture/'; } |