aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-06-12 20:00:51 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-07-01 21:49:01 +0530
commit434d14e1d5c2341584c9d5cfd93840f3eb1a6941 (patch)
tree1d6e344f5de565673e430c3ff09a3ca0406350cb /tests
parent1abc3d91d05919f20b31876dbafbb8edec83d724 (diff)
downloadforums-434d14e1d5c2341584c9d5cfd93840f3eb1a6941.tar
forums-434d14e1d5c2341584c9d5cfd93840f3eb1a6941.tar.gz
forums-434d14e1d5c2341584c9d5cfd93840f3eb1a6941.tar.bz2
forums-434d14e1d5c2341584c9d5cfd93840f3eb1a6941.tar.xz
forums-434d14e1d5c2341584c9d5cfd93840f3eb1a6941.zip
[ticket/11566] Revert forum permission changes
Revert the f_report permission for guests in the functional tests PHPBB3-11566
Diffstat (limited to 'tests')
-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);