I have a method on a class that send an e-mail, it works. Now I want to create tests. How can I set up site configuration for testing this unit?
Thanks
I have a method on a class that send an e-mail, it works. Now I want to create tests. How can I set up site configuration for testing this unit?
Thanks
There is a Mock Mailhost testing Layer which you can use as base of your testing Layer. See https://github.com/plone/plone.app.testing/blob/master/docs/README.rst#mock-mailhost