mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/11566] Check that guest doesn't have reporting permission by default
PHPBB3-11566
This commit is contained in:
parent
ea8a4abe66
commit
84ec1f5423
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ class phpbb_functional_report_post_captcha_test extends phpbb_functional_test_ca
|
||||||
|
|
||||||
public function test_guest_report_post()
|
public function test_guest_report_post()
|
||||||
{
|
{
|
||||||
|
$crawler = self::request('GET', 'report.php?f=2&p=1');
|
||||||
|
$this->add_lang('mcp');
|
||||||
|
$this->assertContains($this->lang('USER_CANNOT_REPORT'), $crawler->filter('html')->text());
|
||||||
|
|
||||||
$this->set_reporting_guest(1);
|
$this->set_reporting_guest(1);
|
||||||
$crawler = self::request('GET', 'report.php?f=2&p=1');
|
$crawler = self::request('GET', 'report.php?f=2&p=1');
|
||||||
$this->assertContains($this->lang('CONFIRM_CODE'), $crawler->filter('html')->text());
|
$this->assertContains($this->lang('CONFIRM_CODE'), $crawler->filter('html')->text());
|
||||||
|
|
Loading…
Add table
Reference in a new issue