mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +02:00
[ticket/16741] Test fixes
PHPBB3-16741
This commit is contained in:
@@ -28,13 +28,14 @@ class phpbb_captcha_qa_test extends \phpbb_database_test_case
|
||||
global $db, $request, $phpbb_container;
|
||||
|
||||
$db = $this->new_dbal();
|
||||
$db_doctrine = $this->new_doctrine_dbal();
|
||||
|
||||
parent::setUp();
|
||||
|
||||
$request = new \phpbb_mock_request();
|
||||
$phpbb_container = new \phpbb_mock_container_builder();
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$phpbb_container->set('dbal.tools', $factory->get($db));
|
||||
$phpbb_container->set('dbal.tools', $factory->get($db_doctrine));
|
||||
$this->qa = new \phpbb\captcha\plugins\qa('phpbb_captcha_questions', 'phpbb_captcha_answers', 'phpbb_qa_confirm');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user