public function test_render_body_when_template_root_not_set_should_throw() { $this->setExpectedException('SMailException', 'Template root not set'); SMailer::set_template_root(null); $mail = $this->mailer->prepare_greetings_message($this->user); }