public function groupOfId($id) { $group = $this->groupRepo->groupOfId($id); return $group; }
/** * @test * @group grouprepo */ public function should_return_null_when_group_of_id_not_found() { $id = 9999999999; $group = $this->groupRepo->groupOfId($id); $this->assertNull($group); }
public function eventsOfGroup($groupId) { $group = $this->groupRepo->groupOfId($groupId); return $this->calendarRepo->eventsOfGroup($group); }