public function setUp() { parent::setUp(); //all shortcode parse tests will require a full event to be setup with some datetimes and tickets. $price = $this->factory->price_chained->create_object(array('PRC_name' => 'Not Free Price', 'PRC_amount' => '125.00')); $this->_ticket = $this->factory->ticket_chained->create_object(array('PRC_ID' => $price->ID())); //update ticket price $this->_ticket->set('TKT_price', '125.00'); $this->_ticket->set('TKT_name', 'Podracing Entry'); $this->_ticket->set('TKT_description', 'One entry in the event.'); $this->_datetime = $this->_ticket->first_datetime(); $this->_event = $this->_datetime->event(); //set the author of the event $this->_event->set('EVT_wp_user', 1); }