Is it? I don't think it is actually. Religious tests for state office were very much in force in the Federal period.
This is the 21st century. Laws like this would never hold up in court.