/**
  * @test
  * @group currrepo
  */
 public function should_return_empty_when_no_objectives_are_found()
 {
     $course = new Course(new Name('foo'));
     $curr = new Curriculum($course, 2015);
     $objectives = $this->currRepo->objectivesOfCurriculum($curr);
     $this->assertEmpty($objectives);
 }
Esempio n. 2
0
 public function objectivesOfCurriculum($courseName)
 {
     $course = $this->courseRepo->courseOfName(new Name($courseName));
     $curriculum = $this->currRepo->curriculumOfCourse($course);
     return $this->currRepo->objectivesOfCurriculum($curriculum);
 }