All Simpletest documentation and examples use the t() function for clickLink()
or assertText()
for example. However when I read the core issue about testing not working when locale of host session is not English and the patch that got committed (tl;dr it forces English to be the default language) I'm curious if it's really necessary.
MegaChriz has an interesting take on this, as he doesn't t() his string in Feeds tests. Extract from his comment as to why:
In most cases, the "final" text is checked, thus the text for which the translation placeholders have already been replaced. So there is no original translation string to check for. If I remember well, there were also occasions where only a portion of the text was checked. Since tests are always run in English (at least, by my knowledge), this should have no harm.
If the default language is English, can't we simply remove the t() function from testing? Please note that I'm not looking for opinions but for facts.