mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13522] Fix QA tests for request_var() use
PHPBB3-13522
This commit is contained in:
parent
94b72cfbdb
commit
c63bc6ee93
1 changed files with 4 additions and 1 deletions
|
@ -11,6 +11,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
|
||||||
|
|
||||||
class phpbb_captcha_qa_test extends \phpbb_database_test_case
|
class phpbb_captcha_qa_test extends \phpbb_database_test_case
|
||||||
{
|
{
|
||||||
protected $request;
|
protected $request;
|
||||||
|
@ -32,7 +34,8 @@ class phpbb_captcha_qa_test extends \phpbb_database_test_case
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->request = new \phpbb_mock_request();
|
$this->request = new \phpbb_mock_request();
|
||||||
$this->qa = new \phpbb\captcha\plugins\qa($this->request, 'phpbb_captcha_questions', 'phpbb_captcha_answers', 'phpbb_qa_confirm');
|
request_var(false, false, false, false, $this->request);
|
||||||
|
$this->qa = new \phpbb\captcha\plugins\qa('phpbb_captcha_questions', 'phpbb_captcha_answers', 'phpbb_qa_confirm');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_is_installed()
|
public function test_is_installed()
|
||||||
|
|
Loading…
Add table
Reference in a new issue