public function startup() { $this->user = User::create(array('firstname' => 'Simon', 'email' => '*****@*****.**')); $this->event = Event::create(array('name' => 'The Red Wedding', 'uid' => $this->user->uid, 'location' => 'Winnipeg')); $this->poll = Poll::create(array('eid' => $this->event->eid, 'polltype' => 'test_type')); $this->lastPollOption = PollOption::max('oid'); }