aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-11-16 23:05:36 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-11-16 23:05:36 +0100
commitf460194379ece85a0f53e737dbe736a1bdfe359c (patch)
treeb24141bb4ee69ef9bf48915975f4b22e99daf2d2 /tests/functions
parent0cbe05faadfade06737f3f057fb1b9aa44a78693 (diff)
downloadforums-f460194379ece85a0f53e737dbe736a1bdfe359c.tar
forums-f460194379ece85a0f53e737dbe736a1bdfe359c.tar.gz
forums-f460194379ece85a0f53e737dbe736a1bdfe359c.tar.bz2
forums-f460194379ece85a0f53e737dbe736a1bdfe359c.tar.xz
forums-f460194379ece85a0f53e737dbe736a1bdfe359c.zip
[ticket/12574] Remove passwords manager & container requirement from oauth
PHPBB3-12574
Diffstat (limited to 'tests/functions')
-rw-r--r--tests/functions/user_delete_test.php25
1 files changed, 23 insertions, 2 deletions
diff --git a/tests/functions/user_delete_test.php b/tests/functions/user_delete_test.php
index 83fda05542..f4ea5696b9 100644
--- a/tests/functions/user_delete_test.php
+++ b/tests/functions/user_delete_test.php
@@ -60,13 +60,34 @@ class phpbb_functions_user_delete_test extends phpbb_database_test_case
// Set up passwords manager
$passwords_manager = new \phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, array_keys($passwords_drivers));
+ $plugins = new \phpbb\di\service_collection($phpbb_container);
+ $plugins->add('core.captcha.plugins.nogd');
+ $phpbb_container->set(
+ 'captcha.factory',
+ new \phpbb\captcha\factory($phpbb_container, $plugins)
+ );
+ $phpbb_container->set(
+ 'core.captcha.plugins.nogd',
+ new \phpbb\captcha\plugins\nogd()
+ );
+ // Set up passwords manager
+ $db_auth_provider = new \phpbb\auth\provider\db(
+ new \phpbb\captcha\factory($phpbb_container, $plugins),
+ $config,
+ $db,
+ $passwords_manager,
+ $request,
+ $user,
+ $phpbb_root_path,
+ $phpEx
+ );
+
$oauth_provider = new \phpbb\auth\provider\oauth\oauth(
$config,
- $phpbb_container,
$db,
+ $db_auth_provider,
$phpbb_dispatcher,
$lang,
- $passwords_manager,
$request,
$oauth_provider_collection,
$user,