aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-07-20 22:35:45 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-07-21 18:50:06 +0200
commit865bf0db3d5ca3f8bbadd009ce0a5e8324de49c1 (patch)
tree6081734cbd3e2b16babb34127d226745fcb28ad4 /tests
parent56df3fd8cafde10b230c925c7eb455003ae76382 (diff)
downloadforums-865bf0db3d5ca3f8bbadd009ce0a5e8324de49c1.tar
forums-865bf0db3d5ca3f8bbadd009ce0a5e8324de49c1.tar.gz
forums-865bf0db3d5ca3f8bbadd009ce0a5e8324de49c1.tar.bz2
forums-865bf0db3d5ca3f8bbadd009ce0a5e8324de49c1.tar.xz
forums-865bf0db3d5ca3f8bbadd009ce0a5e8324de49c1.zip
[ticket/11720] Add functional test for submitting report as user
The already existing functional tests were not ran as the filename was missing the appended "_test". PHPBB3-11720
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/report_post_captcha_test.php (renamed from tests/functional/report_post_captcha.php)19
1 files changed, 12 insertions, 7 deletions
diff --git a/tests/functional/report_post_captcha.php b/tests/functional/report_post_captcha_test.php
index af713775c5..8283465041 100644
--- a/tests/functional/report_post_captcha.php
+++ b/tests/functional/report_post_captcha_test.php
@@ -12,13 +12,6 @@
*/
class phpbb_functional_report_post_captcha_test extends phpbb_functional_test_case
{
- public function test_user_report_post()
- {
- $this->login();
- $crawler = self::request('GET', 'report.php?f=2&p=1');
- $this->assertNotContains($this->lang('CONFIRM_CODE'), $crawler->filter('html')->text());
- }
-
public function test_guest_report_post()
{
$crawler = self::request('GET', 'report.php?f=2&p=1');
@@ -31,6 +24,18 @@ class phpbb_functional_report_post_captcha_test extends phpbb_functional_test_ca
$this->set_reporting_guest(-1);
}
+ public function test_user_report_post()
+ {
+ $this->login();
+ $crawler = self::request('GET', 'report.php?f=2&p=1');
+ $this->assertNotContains($this->lang('CONFIRM_CODE'), $crawler->filter('html')->text());
+
+ $this->add_lang('mcp');
+ $form = $crawler->selectButton($this->lang('SUBMIT'))->form();
+ $crawler = self::submit($form);
+ $this->assertContains($this->lang('POST_REPORTED_SUCCESS'), $crawler->text());
+ }
+
protected function set_reporting_guest($report_post_allowed)
{
$this->login();