コード例 #1
0
ファイル: GroupService.php プロジェクト: bakgat/notos
 public function groupOfId($id)
 {
     $group = $this->groupRepo->groupOfId($id);
     return $group;
 }
コード例 #2
0
 /**
  * @test
  * @group grouprepo
  */
 public function should_return_null_when_group_of_id_not_found()
 {
     $id = 9999999999;
     $group = $this->groupRepo->groupOfId($id);
     $this->assertNull($group);
 }
コード例 #3
0
ファイル: CalendarService.php プロジェクト: bakgat/notos
 public function eventsOfGroup($groupId)
 {
     $group = $this->groupRepo->groupOfId($groupId);
     return $this->calendarRepo->eventsOfGroup($group);
 }