Function to test: https://github.com/wikimedia/mediawiki-extensions-Newsletter/blob/master/includes/NewsletterDb.php#L95
You can find instructions on how to test in the parent task description, or https://phabricator.wikimedia.org/T183613
Mentor: @01tonythomas, and others