Beispiel #1
0
 /**
  * @param $data
  * @param $website
  */
 private function syncObjectives($data, $website)
 {
     $website->clearObjectives();
     if (isset($data['objectives'])) {
         foreach ($data['objectives'] as $objective) {
             $o = $this->curriculumRepository->objectiveOfId($objective['id']);
             $website->addObjective($o);
         }
     }
 }
 /**
  * @test
  * @group currrepo
  */
 public function should_return_null_when_no_objective_of_id_found()
 {
     $id = 999999;
     $objective = $this->currRepo->objectiveOfId($id);
     $this->assertNull($objective);
 }