What age should I get my child’s eyes tested?

How do they even test them when they can’t read letters?