Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Odd and seemingly unrelated error creating unit tests

Go to End



Community Member, 1 Post

16 April 2011 at 8:55am

Edited: 17/04/2011 1:27am


I am new to Silverstripe and have a small problem that I hope someone here can help me with.

I am trying to create a unit test for a new module I am developing, and the thing is, all of the tests pass with no problem at all, I can see this by echoing results in the test, but for some reason my test is failing with this weird error:

⊗ Job Object Test::test Augment Manipulates Correctly
Argument 1 passed to Email::set_mailer() must be an instance of Mailer, null given, called in /mnt/hgfs/workspace/projectname/sapphire/dev/SapphireTest.php on line 367 and defined

Does anyone have any ideas on where I might first look to diagnose this problem?