Domain\Teacher\TeacherRepositoryTest::test_all PHP Method

test_all() public method

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