The full statement from Wikipedia is necessary to establish the proper context (emphasis mine):
A t-test is any statistical hypothesis test in which the test statistic follows a Student's t-distribution under the null hypothesis. It is most commonly applied when the test statistic would follow a normal distribution if the value of a scaling term in the test statistic were known (typically, the scaling term is unknown and therefore a nuisance parameter).
The first sentence tells us that the test statistic follows a particular distribution, which is not actually normal. The second sentence, which is the part you quoted, tells us that this "Student's t-distribution" the statistic follows, obeys a specific property; namely, that if the scale parameter were known (rather than estimated), the corresponding statistic would be normally distributed.
Indeed, the purpose of the second sentence is to introduce the reader to the motivation behind the development of this test, since it is a natural question to ask how to perform statistical inference for a population mean when the variability in that population is unknown. As it is intuitive to estimate that variability from the observed data, the question of how the usual $z$-statistic $$Z \mid H_0 = \frac{\bar x - \mu_0}{\sigma/\sqrt{n}}$$ is distributed when $\sigma$ is replaced by the sample standard deviation $s$, follows readily. So in a sense, the Student's $t$-test has the aforementioned property by construction: the test is what it is because it arose from considering what happens to a $z$-test when $\sigma$ is unknown.
It is important to understand that because of this relationship, the assumptions that underlie the $t$-test are inherited from those from the $z$-test. For instance, the observations are assumed independent and identically distributed realizations from a normal distribution; the mean of this distribution is fixed but unknown; and the variance is fixed and known (in the case of the $z$-test). When this distributional assumption is satisfied, the $z$-statistic is exactly normal; consequently, the $t$-statistic is exactly $t$-distributed under the same assumptions.
What many students misunderstand (and I have pointed this out previously), and what has been nicely addressed in other answers to your question, is the robustness of these statistics to deviations from the normality assumption in relation to the sample size. Such deviations do not necessarily invalidate the test because when the sample size is sufficiently large, the Central Limit Theorem implies the sample mean will be approximately normal. But robustness is not a statement about the actual distribution the statistic follows, and it is also not immediately pertinent to the above quote from Wikipedia.