Domain\Lesson\LessonRepositoryTest::test_all PHP Метод

test_all() публичный Метод

public test_all ( )
    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());
    }