Ejemplo n.º 1
0
 protected function setUp()
 {
     $this->db = TikiDb::get();
     $this->dt = new DateTime();
     $this->dt->setTimezone(new DateTimeZone('UTC'));
     $this->dt->setTimestamp('1326734528');
     $this->obj = new Reports_Users($this->db, $this->dt);
     parent::setUp();
 }
Ejemplo n.º 2
0
 protected function setUp()
 {
     $db = TikiDb::get();
     $dt = new DateTime();
     $dt->setTimezone(new DateTimeZone('UTC'));
     $dt->setTimestamp('1326990210');
     $this->obj = new Reports_Cache($db, $dt);
     parent::setUp();
 }
Ejemplo n.º 3
0
 function setUp()
 {
     $this->db = TikiDb::get();
     $this->dt = new DateTime();
     $this->dt->setTimezone(new DateTimeZone('UTC'));
     // 2012-02-03 15:25:07
     $this->dt->setTimestamp('1328282707');
     $this->table = $this->db->table('tiki_auth_tokens');
     $this->obj = new AuthTokens($this->db, array(), $this->dt);
     parent::setUp();
 }
Ejemplo n.º 4
0
 protected function setUp()
 {
     $this->dt = new DateTime();
     $this->dt->setTimestamp(strtotime('2012-03-27 15:55:16'));
     $this->mail = $this->getMock('TikiMail');
     $this->tikilib = $this->getMock('TikiLib', array('get_user_preference'));
     $this->overrideLibs = new TestableTikiLib();
     $this->overrideLibs->overrideLibs(array('calendar' => $this->getMock('MockCalendarLib', array('get_item'))));
     $tikiPrefs = array('short_date_format' => '%Y-%m-%d');
     $this->obj = Reports_Factory::build('Reports_Manager', $this->dt, $this->mail, $this->tikilib, $tikiPrefs);
     parent::setUp();
 }