예제 #1
0
 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();
 }
예제 #2
0
파일: MailerTest.php 프로젝트: Kervinou/OBM
 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();
 }