- Issue created by @quietone
- 🇦🇹Austria drunken monkey Vienna, Austria
I think this decision makes sense and it should also be enforced. I guess this means that it should be a standard.
However, the only page we have about testing standards is called Drupal SimpleTest coding standards → and mainly lists things relevant for Drupal 6 and 7, so I think we might have more to do here than add a line about not usingt()
. - 🇳🇿New Zealand quietone
How will the sniff know that the test is actually testing translations?
I updated the IS with proposed text.
As for removing the Drupal 6/7 outdated material from the standards docs, I think we can discuss that at a meeting.
- 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
How will the sniff know that the test is actually testing translations?
Since removing t function calls from tests is a performance improvement it might make sense to try figuring that out though. Maybe we should allow it only when in
*TranslationTest.php
?