Jump to:

23493 Posts in 18996 Topics by 2878 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 531 Views
  • frak
    Community Member
    1 Post

    Odd and seemingly unrelated error creating unit tests Link to this post


    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?


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.