Testing if email was sent in Kernel test
Look at core tests that utilize email. For example:

MailCaptureTest::testMailSend()
EmailActionTest::testEmailAction()

The tests demonstrate ways to inspect the plugin.manager.mail service for signs that mail was successfully sent.