[ticket/17093] Change how login is handled to support disabled boards

PHPBB3-17093
This commit is contained in:
Marc Alexander 2024-02-22 19:06:26 +01:00
parent be93efee1d
commit 946fb7d9a4
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -851,8 +851,9 @@ class phpbb_functional_test_case extends phpbb_test_case
{
$this->add_lang('ucp');
$crawler = self::request('GET', 'ucp.php');
$this->assertStringContainsString($this->lang('LOGIN_EXPLAIN_UCP'), $crawler->filter('html')->text());
$crawler = self::request('GET', 'ucp.php?mode=login');
$button = $crawler->selectButton($this->lang('LOGIN'));
$this->assertGreaterThan(0, $button->count(), 'No login button found');
$form = $crawler->selectButton($this->lang('LOGIN'))->form();
if ($autologin)