21309 Posts in 5738 Topics by 2603 members
General Questions
SilverStripe Forums » General Questions » Odd and seemingly unrelated error creating unit tests
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 397 Views |
-
Odd and seemingly unrelated error creating unit tests

16 April 2011 at 8:55am Last edited: 17 April 2011 1:27am
Hi,
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 definedDoes anyone have any ideas on where I might first look to diagnose this problem?
Thanks!
| 397 Views | ||
|
Page:
1
|
Go to Top |

