Really, you just need to try it. I took page_creation.test -- it's always good to start with an example -- which creates a user which posts a page. I have continued this test with creating another user to subscribe to this page and then yet another user which posts a comment. Using the sendmail trick in my previous post the email landed in a file and I have tested whether the comment subject appears in it. The whole thing really was more copy-paste than creative coding and worked for the first time. This is fantastic. We should not accept any more feature patch to core without an accompanying test. Just go and try writing a test based on the existing ones.
Commenting on this Story is closed.