[BUGFIX] Sections not properly handled by record collector 92/35692/3
authorBernhard Kraft <kraft@webconsulting.at>
Wed, 31 Dec 2014 14:12:57 +0000 (15:12 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Jan 2015 13:55:07 +0000 (14:55 +0100)
commit225c23104017356440ec25eff6d41f7033c72383
treea157b53911d246b648ff90fb2eec23911b2e96b3
parent9d9298b122ea7403f32b164e76d7e44c0a7d09df
[BUGFIX] Sections not properly handled by record collector

When using the Unit-Test framework frontend record collector the
resulting response is not correct.

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)
there are appropriate array keys used anyways.

Solution is to reset the internal member variables used for collecting
record information each time after attaching a section.

Resolves: #64066
Releases: master
Change-Id: I7a1ff945e0d267f1e0c6608637479ea0cc28fe70
Reviewed-on: http://review.typo3.org/35692
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Mateusz WojtuƂa <matw88@gmail.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Tests/Functional/Framework/Frontend/Collector.php