played the fool
to be played the fool; to be patronised, deceived, conned or taken advantage of. to be treated like an idiot.
Johnny told his teacher the dog ate his homework and he couldn't sleep.

the teacher said Johnny could have the day off school. the teacher had been played the fool