mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 02:18:56 +00:00
[ticket/10939] Modified fileupload tests to deal with new behaviour
PHPBB3-10939
This commit is contained in:
parent
348554cc29
commit
df86f466e0
1 changed files with 5 additions and 1 deletions
|
@ -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/';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue