public function setUp()
 {
     parent::setUp();
     $this->event_ids = array();
     $event_id = $this->factory->event->create(array('start' => new DateTime('2015-03-21 19:30:00', eo_get_blog_timezone()), 'end' => new DateTime('2015-03-21 20:30:00', eo_get_blog_timezone()), 'schedule' => 'daily', 'schedule_last' => new DateTime('2015-03-24 19:30:00', eo_get_blog_timezone())));
     //Now insert another event before the rest, so that the first (chronological) occurrence is
     //not the first in the database for this series.
     eo_update_event($event_id, array('include' => array(new DateTime('2015-03-20 19:30:00', eo_get_blog_timezone()))));
     $this->event_ids[] = $event_id;
     $this->event_ids[] = $this->factory->event->create(array('start' => new DateTime('2015-03-02 14:00:00', eo_get_blog_timezone()), 'end' => new DateTime('2015-03-02 15:00:00', eo_get_blog_timezone()), 'schedule' => 'weekly', 'schedule_last' => new DateTime('2015-03-30 14:00:00', eo_get_blog_timezone())));
     $this->event_ids[] = $this->factory->event->create(array('start' => new DateTime('2015-03-23 09:45:00', eo_get_blog_timezone()), 'end' => new DateTime('2015-03-23 10:00:00', eo_get_blog_timezone()), 'schedule' => 'daily', 'schedule_last' => new DateTime('2015-03-27 09:45:00', eo_get_blog_timezone())));
 }
Exemple #2
0
 public function setUp()
 {
     parent::setUp();
     global $wpdb;
     $wpdb->query('DELETE FROM ' . $wpdb->eo_venuemeta);
 }
 public function setUp()
 {
     parent::setUp();
 }