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->pollOption = PollOption::create(array('option' => 'some option', 'pid' => $this->poll->pid)); }