diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-02-21 17:53:25 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-02-21 17:53:25 +0100 |
commit | c63bc6ee93f143fbc97ddb826fb310962a8320c7 (patch) | |
tree | 10d090efc24456d9fd96602fc7d210802108b15d /tests | |
parent | 94b72cfbdb3eae2822ba0fddb88369373ebd5b85 (diff) | |
download | forums-c63bc6ee93f143fbc97ddb826fb310962a8320c7.tar forums-c63bc6ee93f143fbc97ddb826fb310962a8320c7.tar.gz forums-c63bc6ee93f143fbc97ddb826fb310962a8320c7.tar.bz2 forums-c63bc6ee93f143fbc97ddb826fb310962a8320c7.tar.xz forums-c63bc6ee93f143fbc97ddb826fb310962a8320c7.zip |
[ticket/13522] Fix QA tests for request_var() use
PHPBB3-13522
Diffstat (limited to 'tests')
-rw-r--r-- | tests/captcha/qa_test.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/captcha/qa_test.php b/tests/captcha/qa_test.php index 8d0d77d0e3..1f2f9f3070 100644 --- a/tests/captcha/qa_test.php +++ b/tests/captcha/qa_test.php @@ -11,6 +11,8 @@ * */ +require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; + class phpbb_captcha_qa_test extends \phpbb_database_test_case { protected $request; @@ -32,7 +34,8 @@ class phpbb_captcha_qa_test extends \phpbb_database_test_case parent::setUp(); $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() |