public function prepareData() { parent::prepareData(); $role = new Ticket_1131_Role(); $role->name = 'Role One'; $role->save(); $this->role_one = $role->id; $role->free(); $role = new Ticket_1131_Role(); $role->name = 'Role Two'; $role->save(); $this->role_two = $role->id; $role->free(); $group = new Ticket_1131_Group(); $group->role_id = $this->role_one; $group->name = 'Core Dev'; $group->save(); $user = new Ticket_1131_User(); $user->Group = $group; $user->role_id = $this->role_two; $user->name = 'jwage'; $user->save(); $group->free(); $user->free(); }
public function prepareData() { $u = new Ticket_DC198_User(); $u->name = 'test'; $u->email->address = '*****@*****.**'; $u->save(); parent::prepareData(); }
public function prepareData() { parent::prepareData(); //we create a test entity that is not a user and not a group $entity = new Entity(); $entity->name='Other Entity'; $entity->type = 2; $entity->save(); $this->otherEntity = $entity; }
public function prepareData() { $oPerson = new T929_Person(); $oPerson->name = 'Jonathan'; $oPerson->Country->code = 'us'; $oPerson->Country->Translation['fr']->name = 'Etats Unis'; $oPerson->Country->Translation['en']->name = 'United states'; $oPerson->save(); parent::prepareData(); }
public function prepareData() { parent::prepareData(); }