Domain\Classroom\ClassroomRepositoryTest::test_all PHP Method

test_all() public method

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