public function setup() { parent::setup(); $GLOBALS['obm']['uid'] = 3; $this->mailObserver = new OBM_EventMailObserver(); OBM_EventFactory::getInstance()->attach($this->mailObserver); SMailer::set_default_transport(new Stato_StaticTransport()); OBM_Acl::initialize(); }
public function setup() { SMailer::set_template_root(dirname(__FILE__).'/files'); SMailer::set_default_transport(new SDummyTransport()); $this->user = new stdClass; $this->user->name = 'John Doe'; $this->user->mail = '*****@*****.**'; $this->mailer = new UserMailer(); }