1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[ticket/12960] Remove broken captchas and prepare for incomplete captcha

PHPBB3-12960
This commit is contained in:
Marc Alexander
2024-03-25 21:34:44 +01:00
parent 70d61a4e91
commit 12e9c3d082
15 changed files with 16 additions and 4215 deletions

View File

@@ -45,14 +45,14 @@ class phpbb_auth_provider_db_test extends phpbb_database_test_case
$phpbb_container = new phpbb_mock_container_builder();
$plugins = new \phpbb\di\service_collection($phpbb_container);
$plugins->add('core.captcha.plugins.nogd');
$plugins->add('core.captcha.plugins.qa');
$phpbb_container->set(
'captcha.factory',
new \phpbb\captcha\factory($phpbb_container, $plugins)
);
$phpbb_container->set(
'core.captcha.plugins.nogd',
new \phpbb\captcha\plugins\nogd()
'core.captcha.plugins.qa',
new \phpbb\captcha\plugins\qa('', '', '')
);
/** @var \phpbb\captcha\factory $captcha_factory */
$captcha_factory = $phpbb_container->get('captcha.factory');