aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/report_post_captcha.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional/report_post_captcha.php b/tests/functional/report_post_captcha.php
index e0a67ab6fa..0585be1332 100644
--- a/tests/functional/report_post_captcha.php
+++ b/tests/functional/report_post_captcha.php
@@ -21,12 +21,13 @@ class phpbb_functional_report_post_captcha_test extends phpbb_functional_test_ca
public function test_guest_report_post()
{
- $this->enable_reporting_guest();
+ $this->set_reporting_guest(1);
$crawler = self::request('GET', 'report.php?f=2&p=1');
$this->assertContains($this->lang('CONFIRM_CODE'), $crawler->filter('html')->text());
+ $this->set_reporting_guest(-1);
}
- protected function enable_reporting_guest()
+ protected function set_reporting_guest($report_post_allowed)
{
$this->login();
$this->admin_login();
@@ -47,7 +48,7 @@ class phpbb_functional_report_post_captcha_test extends phpbb_functional_test_ca
$this->add_lang('acp/permissions');
$form = $crawler->selectButton($this->lang('APPLY_ALL_PERMISSIONS'))->form();
$values = $form->getValues();
- $values["setting[1][2][f_report]"] = 1;
+ $values["setting[1][2][f_report]"] = $report_post_allowed;
$form->setValues($values);
$crawler = self::submit($form);