/**
  * @test
  * @group grouprepo
  */
 public function should_return_group_of_id()
 {
     $tmp = $this->groupRepo->groupOfName('OK');
     $id = $tmp->id();
     $this->em->clear();
     $group = $this->groupRepo->groupOfId($id);
     $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Identity\\Group', $group);
     $this->assertEquals($id, $group->id());
     $this->assertTrue($tmp->name()->equals($group->name()));
 }
 /**
  * @test
  * @group currrepo
  */
 public function should_add_objective_level()
 {
     $cg_K1A = $this->groupRepo->groupOfName('1KA');
     $objective = $this->currRepo->objectiveOfCode('D0.1.a');
     $level = 2;
     $this->currRepo->addObjectiveLevel($objective, $cg_K1A, $level);
     $this->em->clear();
     $result = $this->currRepo->objectiveOfCode('D0.1.a');
     $this->assertCount(2, $result->levels());
     $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Curricula\\ObjectiveControlLevel', $result->levels()[1]);
 }
 private function get1KA()
 {
     $n_1KA = new Name('1KA');
     $group = $this->groupRepo->groupOfName($n_1KA);
     return $group;
 }