mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-28 13:05:42 +00:00
[Web][Tests] Add mailbox group, identity sync, auth, Dovecot and SOGo module tests
This commit is contained in:
19 files changed
+1997
No files matched your search
@@ -6,3 +6,13 @@ declare(strict_types=1);
|
||||
// of data/web/inc/lib/composer.json, exactly as php-fpm does.
|
||||
require __DIR__ . '/../../data/web/inc/lib/vendor/autoload.php';
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
// The php:8.2-cli test image has no intl (php-fpm has); ASCII domains are all the unit tests need
|
||||
if (!function_exists('idn_to_ascii')) {
|
||||
define('INTL_IDNA_VARIANT_UTS46', 1);
|
||||
|
||||
function idn_to_ascii(string $domain, int $flags = 0, int $variant = INTL_IDNA_VARIANT_UTS46): string|false
|
||||
{
|
||||
return preg_match('/^[\x21-\x7e]*$/', $domain) ? $domain : false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user