aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload/fileupload_test.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-15 15:56:43 +0100
committerFyorl <gaelreth@gmail.com>2012-08-15 15:56:43 +0100
commitdf86f466e0245669e5cf97a162378fb653c72422 (patch)
tree49cb28d873456c0861cc023355449dd0c539686f /tests/upload/fileupload_test.php
parent348554cc297bf906a0510894986bb60041a5db9a (diff)
downloadforums-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.php6
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/';
}