mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/10939] Modified fileupload tests to deal with new behaviour
PHPBB3-10939
This commit is contained in:
@@ -19,7 +19,8 @@ class phpbb_fileupload_test extends phpbb_test_case
|
|||||||
{
|
{
|
||||||
// Global $config required by unique_id
|
// Global $config required by unique_id
|
||||||
// Global $user required by several functions dealing with translations
|
// 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))
|
if (!is_array($config))
|
||||||
{
|
{
|
||||||
@@ -31,6 +32,9 @@ class phpbb_fileupload_test extends phpbb_test_case
|
|||||||
|
|
||||||
$user = new phpbb_mock_user();
|
$user = new phpbb_mock_user();
|
||||||
$user->lang = new phpbb_mock_lang();
|
$user->lang = new phpbb_mock_lang();
|
||||||
|
|
||||||
|
$request = new phpbb_mock_request();
|
||||||
|
|
||||||
$this->path = __DIR__ . '/fixture/';
|
$this->path = __DIR__ . '/fixture/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user