Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/MslsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class MslsAdmin extends MslsMain {
*
* @var int
*/
public const MAX_REFERENCE_USERS = 100;
public const MAX_REFERENCE_USERS = 200;

/**
* @codeCoverageIgnore
Expand Down
5 changes: 4 additions & 1 deletion tests/phpunit/TestMslsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down