Introductory Statistics 2e, Chapter 9, p. 466
The test statistic and its distribution depend on what you're testing. For a mean with known, use the normal () distribution; with unknown, use Student's with ; for a proportion, use the normal approximation to the binomial.
Textbook: OpenStax Introductory Statistics 2e (CC BY-NC-SA 4.0). Access for free at openstax.org.