[ticket/11405] Add unit tests for quoted users notifications

PHPBB3-11405
[ticket/11405] Sort $users array in order to prevent issues on postgres

PHPBB3-11405