Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 9 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| phpbb_functional_mcp_logs_test | |
0.00% |
0 / 9 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| test_delete_logs | |
0.00% |
0 / 9 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | /** |
| 15 | * @group functional |
| 16 | */ |
| 17 | class phpbb_functional_mcp_logs_test extends phpbb_functional_test_case |
| 18 | { |
| 19 | public function test_delete_logs() |
| 20 | { |
| 21 | $this->add_lang(['mcp', 'common']); |
| 22 | |
| 23 | $this->login(); |
| 24 | $crawler = self::request('GET', "mcp.php?i=mcp_logs&mode=front&sid={$this->sid}"); |
| 25 | $this->assertGreaterThanOrEqual(1, $crawler->filter('input[type=checkbox]')->count()); |
| 26 | |
| 27 | $form = $crawler->selectButton($this->lang('DELETE_ALL'))->form(); |
| 28 | $crawler = self::submit($form); |
| 29 | |
| 30 | $form = $crawler->selectButton($this->lang('YES'))->form(); |
| 31 | $crawler = self::submit($form); |
| 32 | |
| 33 | $this->assertCount(0, $crawler->filter('input[type=checkbox]')); |
| 34 | } |
| 35 | } |