mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17391] Add simple functional test
PHPBB-17391
This commit is contained in:
parent
46ea7a8ffd
commit
4217dc46ca
1 changed files with 16 additions and 0 deletions
|
@ -123,4 +123,20 @@ class phpbb_functional_acp_groups_test extends phpbb_functional_common_groups_te
|
||||||
$this->assertEquals((bool) $tick_teampage, (bool) ($this->form_data['group_teampage'] ?? false));
|
$this->assertEquals((bool) $tick_teampage, (bool) ($this->form_data['group_teampage'] ?? false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_acp_groups_create_existing_name()
|
||||||
|
{
|
||||||
|
$this->group_manage_login();
|
||||||
|
|
||||||
|
$crawler = self::request('GET', 'adm/index.php?i=groups&mode=manage&sid=' . $this->sid);
|
||||||
|
$form = $crawler->selectButton($this->lang('SUBMIT'))->form([
|
||||||
|
'group_name' => 'Guests', // 'Guests' is the group name already in use for predefined Guests group
|
||||||
|
]);
|
||||||
|
|
||||||
|
$crawler = self::submit($form);
|
||||||
|
$form = $crawler->selectButton($this->lang('SUBMIT'))->form();
|
||||||
|
$crawler = self::submit($form); // Just submit the form with selected group name
|
||||||
|
|
||||||
|
$this->assertStringContainsString($this->lang('GROUP_NAME_TAKEN'), $crawler->text());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue