48 lines
1.6 KiB
PHP
48 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Engelsystem\Test\Utils;
|
||
|
|
||
|
use Engelsystem\Config\Config;
|
||
|
use Engelsystem\Config\GoodieType;
|
||
|
|
||
|
final class SignUpConfig
|
||
|
{
|
||
|
public static function setMaximumConfig(Config $config): void
|
||
|
{
|
||
|
$config->set('registration_enabled', true);
|
||
|
$config->set('enable_password', true);
|
||
|
$config->set('enable_pronoun', true);
|
||
|
$config->set('goodie_type', GoodieType::Tshirt->value);
|
||
|
$config->set('tshirt_sizes', [
|
||
|
'S' => 'Small Straight-Cut',
|
||
|
'M' => 'Medium Straight-Cut',
|
||
|
]);
|
||
|
// disallow numeric values in username for tests
|
||
|
$config->set('username_regex', '/\d+/');
|
||
|
$config->set('min_password_length', 3);
|
||
|
$config->set('theme', 0);
|
||
|
$config->set('enable_planned_arrival', true);
|
||
|
$config->set('enable_user_name', true);
|
||
|
$config->set('enable_mobile_show', true);
|
||
|
$config->set('enable_dect', true);
|
||
|
}
|
||
|
|
||
|
public static function setMinimumConfig(Config $config): void
|
||
|
{
|
||
|
$config->set('registration_enabled', true);
|
||
|
$config->set('enable_password', true);
|
||
|
$config->set('enable_pronoun', false);
|
||
|
$config->set('goodie_type', GoodieType::None->value);
|
||
|
// disallow numeric values in username for tests
|
||
|
$config->set('username_regex', '/\d+/');
|
||
|
$config->set('min_password_length', 3);
|
||
|
$config->set('theme', 0);
|
||
|
$config->set('enable_planned_arrival', false);
|
||
|
$config->set('enable_user_name', false);
|
||
|
$config->set('enable_mobile_show', false);
|
||
|
$config->set('enable_dect', false);
|
||
|
}
|
||
|
}
|