示例#1
0
 public function setCourses(array $courseQuantityPerCourseLevelId)
 {
     foreach ($courseQuantityPerCourseLevelId as $levelId => $courseQuantity) {
         $level = CourseLevel::find($levelId);
         $this->setCoursesPerLevel($level, $courseQuantity);
     }
 }
 public function find($id)
 {
     return CourseLevel::find($id);
 }
 public function testEloquentToModel()
 {
     $courseLevelEloquent = EloquentCourseLevel::first();
     $courseLevel = CourseLevelAssembler::loadModel($courseLevelEloquent);
     $this->assertNotEmpty($courseLevel);
 }