diff options
Diffstat (limited to 'tests/functions')
| -rw-r--r-- | tests/functions/obtain_online_test.php | 3 | ||||
| -rw-r--r-- | tests/functions/validate_password_test.php | 1 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/tests/functions/obtain_online_test.php b/tests/functions/obtain_online_test.php index 624e05f77f..cf42fd5b58 100644 --- a/tests/functions/obtain_online_test.php +++ b/tests/functions/obtain_online_test.php @@ -21,8 +21,9 @@ class phpbb_functions_obtain_online_test extends phpbb_database_test_case  	{  		parent::setUp(); -		global $config, $db; +		global $config, $db, $user; +		$user = new StdClass;  		$db = $this->db = $this->new_dbal();  		$config = array(  			'load_online_time'	=> 5, diff --git a/tests/functions/validate_password_test.php b/tests/functions/validate_password_test.php index 4639f6cc89..82c5fa03c1 100644 --- a/tests/functions/validate_password_test.php +++ b/tests/functions/validate_password_test.php @@ -7,6 +7,7 @@  *  */ +require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';  require_once dirname(__FILE__) . '/../../phpBB/includes/functions_user.php';  require_once dirname(__FILE__) . '/validate_data_helper.php'; | 
