diff --git a/includes/MslsAdmin.php b/includes/MslsAdmin.php index 5120dfd0..4f9e6363 100644 --- a/includes/MslsAdmin.php +++ b/includes/MslsAdmin.php @@ -35,7 +35,7 @@ final class MslsAdmin extends MslsMain { * * @var int */ - public const MAX_REFERENCE_USERS = 100; + public const MAX_REFERENCE_USERS = 200; /** * @codeCoverageIgnore diff --git a/tests/phpunit/TestMslsAdmin.php b/tests/phpunit/TestMslsAdmin.php index bd410c78..fdf3dbd4 100644 --- a/tests/phpunit/TestMslsAdmin.php +++ b/tests/phpunit/TestMslsAdmin.php @@ -138,7 +138,10 @@ static function ( $errno, $errstr ) { $this->expectException( \Exception::class ); $this->expectExceptionMessage( - 'Multisite Language Switcher: Collection for reference user has been truncated because it exceeded the maximum of 100 users. Please, use the hook "msls_reference_users" to filter the result before!' + sprintf( + 'Multisite Language Switcher: Collection for reference user has been truncated because it exceeded the maximum of %d users. Please, use the hook "msls_reference_users" to filter the result before!', + MslsAdmin::MAX_REFERENCE_USERS + ) ); $obj->reference_user();