mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12818] Add tests
PHPBB3-12818
This commit is contained in:
parent
b7fb2e557e
commit
14e9c7695d
1 changed files with 16 additions and 0 deletions
|
@ -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]'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue