In 1672 Charles promulgated the Declaration of Indulgence, which suspended the penal code against all religious Nonconformists, Catholic and Dissenter alike. But a declaration of toleration could not bring together these mortal enemies, and the king found himself faced by a unified Protestant front. In 1673 the Cavalier Parliament compelled Charles to withdraw the declaration and implement, in its place, the first of the Test Acts (1673), which required anyone entering public service in England to deny the Catholic doctrine of transubstantiation and to take Anglican communion. When Charles II’s openly Catholic successor James II attempted to issue a similar Declaration of Indulgence, an order for general religious tolerance, it became one of the grievances that led to the Glorious Revolution which ousted him from the throne.