aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/mcp_test.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-07-07 21:49:48 +0200
committerTristan Darricau <github@nicofuma.fr>2014-07-07 21:49:48 +0200
commit14e9c7695d113422ef7d49f11933fa935c74b979 (patch)
treeee86089c0b86e37d9cb477ebd283ae1fb7debc60 /tests/functional/mcp_test.php
parentb7fb2e557e9d35cc292f38fc7dddfc2920068eb0 (diff)
downloadforums-14e9c7695d113422ef7d49f11933fa935c74b979.tar
forums-14e9c7695d113422ef7d49f11933fa935c74b979.tar.gz
forums-14e9c7695d113422ef7d49f11933fa935c74b979.tar.bz2
forums-14e9c7695d113422ef7d49f11933fa935c74b979.tar.xz
forums-14e9c7695d113422ef7d49f11933fa935c74b979.zip
[ticket/12818] Add tests
PHPBB3-12818
Diffstat (limited to 'tests/functional/mcp_test.php')
-rw-r--r--tests/functional/mcp_test.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/functional/mcp_test.php b/tests/functional/mcp_test.php
index 31d835f4fa..5cccc5c180 100644
--- a/tests/functional/mcp_test.php
+++ b/tests/functional/mcp_test.php
@@ -64,4 +64,20 @@ class phpbb_functional_mcp_test extends phpbb_functional_test_case
$crawler = self::submit($form);
$this->assertContains($this->lang('POSTS_MERGED_SUCCESS'), $crawler->text());
}
+
+ public function test_delete_logs()
+ {
+ $this->login();
+ $crawler = self::request('GET', "mcp.php?i=149&sid={$this->sid}");
+ $this->assertCount(1, $crawler->filter('input[type=checkbox]'));
+
+ $this->add_lang('mcp');
+ $form = $crawler->selectButton($this->lang('DELETE_ALL'))->form();
+ $crawler = self::submit($form);
+
+ $form = $crawler->selectButton('Yes')->form();
+ $crawler = self::submit($form);
+
+ $this->assertCount(0, $crawler->filter('input[type=checkbox]'));
+ }
}