mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16276] Further fix PHP nightly tests
PHPBB3-16276
This commit is contained in:
@@ -161,6 +161,7 @@ class phpbb_functions_obtain_online_test extends phpbb_database_test_case
|
||||
global $config, $user, $auth, $phpbb_dispatcher;
|
||||
$config['load_online_guests'] = $display_guests;
|
||||
$user = new phpbb_mock_lang();
|
||||
$user->data['user_id'] = 100;
|
||||
$user->lang = $this->load_language();
|
||||
$auth = $this->createMock('\phpbb\auth\auth');
|
||||
$acl_get_map = array(
|
||||
|
@@ -130,11 +130,13 @@ class phpbb_functions_validate_data_test extends phpbb_database_test_case
|
||||
*/
|
||||
public function test_validate_username($allow_name_chars, $expected)
|
||||
{
|
||||
global $cache, $config, $db;
|
||||
global $cache, $config, $db, $user;
|
||||
|
||||
$db = $this->db;
|
||||
$cache = $this->cache;
|
||||
$cache->put('_disallowed_usernames', array('barfoo'));
|
||||
$user = new phpbb_mock_user();
|
||||
$user->data['username_clean'] = 'username';
|
||||
|
||||
$config['allow_name_chars'] = $allow_name_chars;
|
||||
|
||||
|
Reference in New Issue
Block a user