Exemplo n.º 1
0
 private function createCurricula()
 {
     $maths = $this->courseRepo->courseOfName(new Name('wiskunde'));
     $maths_cur = $this->currRepo->curriculumOfCourse($maths);
     //$maths_cur = new Curriculum($maths, 2000);
     //$maths_cur->setCode('D/2000/0938/02');
     //$this->manager->persist($maths_cur);
     $this->recursiveStructure($this->math_objectives, null, $maths_cur);
     $this->manager->flush();
 }
 /**
  * @test
  * @group currrepo
  */
 public function should_return_null_when_no_structure_found()
 {
     $n_maths = new Name('wiskunde');
     $course = $this->courseRepo->courseOfName($n_maths);
     $curr = $this->currRepo->curriculumOfCourse($course);
     $n_struc = new Name('chapter 2');
     $structure = $this->currRepo->structure($curr, null, $n_struc->toString(), 'chapter');
     $this->assertNull($structure);
 }
 /**
  * @test
  * @group courserepo
  */
 public function should_return_nulll_when_name_not_found()
 {
     $name = new Name('foo');
     $course = $this->courseRepo->courseOfName($name);
     $this->assertNull($course);
 }
Exemplo n.º 4
0
 public function objectivesOfCurriculum($courseName)
 {
     $course = $this->courseRepo->courseOfName(new Name($courseName));
     $curriculum = $this->currRepo->curriculumOfCourse($course);
     return $this->currRepo->objectivesOfCurriculum($curriculum);
 }