/**
  * @test
  * @group calendarrepo
  */
 public function should_return_empty_set_of_group_foo()
 {
     $n_foo = new Name('foo');
     $foo = Group::register($n_foo);
     $events = $this->calendarRepo->eventsOfGroup($foo);
     $this->assertEmpty($events);
 }
Exemple #2
0
 public function eventsOfGroup($groupId)
 {
     $group = $this->groupRepo->groupOfId($groupId);
     return $this->calendarRepo->eventsOfGroup($group);
 }