mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/11566] Check that guest doesn't have reporting permission by default
PHPBB3-11566
This commit is contained in:
parent
ea8a4abe66
commit
84ec1f5423
@ -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…
x
Reference in New Issue
Block a user