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_group_create_test | |
0.00% |
0 / 9 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| test_create_group | |
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_group_create_test extends phpbb_functional_test_case |
| 18 | { |
| 19 | |
| 20 | public function test_create_group() |
| 21 | { |
| 22 | $this->login(); |
| 23 | $this->admin_login(); |
| 24 | $this->add_lang('acp/groups'); |
| 25 | |
| 26 | $crawler = self::request('GET', 'adm/index.php?i=acp_groups&mode=manage&sid=' . $this->sid); |
| 27 | $form = $crawler->selectButton($this->lang('SUBMIT'))->form(); |
| 28 | $crawler = self::submit($form, array('group_name' => 'testtest')); |
| 29 | |
| 30 | $form = $crawler->selectButton($this->lang('SUBMIT'))->form(); |
| 31 | $crawler = self::submit($form, array('group_name' => 'testtest')); |
| 32 | |
| 33 | $this->assertContainsLang('GROUP_CREATED', $crawler->filter('#main')->text()); |
| 34 | } |
| 35 | } |