Domain\Student\StudentRepositoryTest::test_all PHP Method

test_all() public method

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