1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/16276] Further fix PHP nightly tests

PHPBB3-16276
This commit is contained in:
rxu
2019-12-29 02:12:36 +07:00
parent 82e61f501a
commit dcab076221
15 changed files with 41 additions and 18 deletions

View File

@@ -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;