The Corporation Act of James I provided that all such as were naturalized or restored in blood should receive the sacrament of the Lord's Supper. It was not, however, until the reign of Charles II that actually receiving communion in the Church of England was made a precondition for holding public office. The earliest imposition of this test was by the Corporation Act of 1661 requiring that, besides taking the Oath of Supremacy, all members of corporations were, within one year after election, to receive the sacrament of the Lord's Supper according to the rites of the Church of England.
This act was followed by the Test Act of 1673 (25 Car. II. c. 2) (the long title of which is "An act for preventing dangers which may happen from popish recusants"). This act enforced upon all persons filling any office, civil or military, the obligation of taking the oaths of supremacy and allegiance and subscribing to a declaration against transubstantiation and also of receiving the sacrament within three months after admittance to office. The oath for the Test Act of 1673 was:
I, N, do declare that I do believe that there is not any transubstantiation in the sacrament of the Lord's Supper, or in the elements of the bread and wine, at or after the consecration thereof by any person whatsoever.
The act was passed in the parliamentary session that began on 4 February 1673; the act is dated as 1672 in some accounts because the Julian calendar then in force held that the new year did not begin until Lady Day, or 25 March. The correct date using the modern Gregorian calendar is 1673.
Initially, the Act did not extend to peers; but in 1678 the Act was extended by a further Act (30 Car. II. st. 2) which required that all peers and members of the House of Commons should make a declaration against transubstantiation, invocation of saints, and the sacrament of Mass. The effect of this was to exclude Catholics from both houses, and in particular the "Five Popish Lords" from the House of Lords, a change motivated largely by the alleged Popish Plot. The Lords deeply resented this interference with their membership; they delayed passage of the Act as long as possible, and managed to greatly weaken it by including an exemption for the future James II, effective head of the Catholic nobility, at whom it was largely aimed.
The necessity of receiving the sacrament as a qualification for office was repealed in 1828 and all acts requiring the taking of oaths and declarations against transubstantiation were repealed by the Catholic Relief Act 1829. Sir Robert Peel took the lead for the government in the repeal and collaborated with Anglican Church leaders.