Exemplo n.º 1
0
 private static function setCourseLevel($eloquentCourseLevel)
 {
     $courseLevel = CourseLevelAssembler::loadModel($eloquentCourseLevel);
     self::$course->setCourseLevel($courseLevel);
 }
Exemplo n.º 2
0
 public function testEloquentToModel()
 {
     $courseLevelEloquent = EloquentCourseLevel::first();
     $courseLevel = CourseLevelAssembler::loadModel($courseLevelEloquent);
     $this->assertNotEmpty($courseLevel);
 }