typo3-testing
Originally fromdirnbauer/webconsulting-skills
Installation
SKILL.md
TYPO3 Testing Skill
A Report Becomes a Failing Test Before It Becomes a Fix
A bug report is a test that does not exist yet. Write it from the report's own input and expected output, run it, and see it fail for the reason the report gives. A test written after the fix proves only that the code does what it does.
Output produced through a template is not covered by a unit suite. The unit suite loads PHP classes and never renders a Fluid template, so an edit to a template leaves the suite green while the page is broken. Prove such a change by rendering it: a functional test that calls the rendering path and asserts the rendered string.