diff options
Diffstat (limited to 'tests/security')
| -rw-r--r-- | tests/security/base.php | 6 | ||||
| -rw-r--r-- | tests/security/redirect_test.php | 2 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/tests/security/base.php b/tests/security/base.php index 330408b448..d2abdbc362 100644 --- a/tests/security/base.php +++ b/tests/security/base.php @@ -46,10 +46,12 @@ abstract class phpbb_security_test_base extends phpbb_test_case  		$request = new phpbb_mock_request(array(), array(), array(), $this->server);  		$symfony_request = new \phpbb\symfony_request($request); -		$phpbb_filesystem = new \phpbb\filesystem(); +		$phpbb_filesystem = new \phpbb\filesystem\filesystem();  		// Set no user and trick a bit to circumvent errors -		$user = new \phpbb\user('\phpbb\datetime'); +		$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx); +		$lang = new \phpbb\language\language($lang_loader); +		$user = new \phpbb\user($lang, '\phpbb\datetime');  		$user->lang = true;  		$user->browser				= $this->server['HTTP_USER_AGENT'];  		$user->referer				= ''; diff --git a/tests/security/redirect_test.php b/tests/security/redirect_test.php index a88fc63858..62781f3ee6 100644 --- a/tests/security/redirect_test.php +++ b/tests/security/redirect_test.php @@ -67,7 +67,7 @@ class phpbb_security_redirect_test extends phpbb_security_test_base  				new \phpbb\symfony_request(  					new phpbb_mock_request()  				), -				new \phpbb\filesystem(), +				new \phpbb\filesystem\filesystem(),  				$this->getMock('\phpbb\request\request'),  				$this->phpbb_root_path,  				'php' | 
