Bug #64066
closedTestingframework record collector does not reset internal variables
100%
Description
When using the Unit-Test framework frontend record collector [1] the resulting response is invalid.
Instead of adding records only to the specific section (configured via TypoScript) the records pile up in $this->records and get added to every section. The reason this only true for $this->records of the Collector is, that for the other class variables (like $this->structure) they are using appropriate array keys anyways.
My proposed solution is to reset the internal member variables: records, structure and structurePath each time after attaching a section. See patch on gerrit.
Updated by Gerrit Code Review almost 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35692
Updated by Gerrit Code Review almost 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35692
Updated by Anja Leichsenring almost 10 years ago
- Sprint Focus set to On Location Sprint
Updated by Anonymous almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 50 to 100
Applied in changeset 225c23104017356440ec25eff6d41f7033c72383.
Updated by Anja Leichsenring almost 9 years ago
- Sprint Focus deleted (
On Location Sprint)