public function test_all() { $repo = App::make(LessonRepository::class); factory(Lesson::class)->create(); $all = $repo->all(); $this->assertInstanceOf(LengthAwarePaginator::class, $all); $this->assertInstanceOf(Lesson::class, $all->first()); }