[TASK] Add functional tests for dynamic values in Extbase query cache 63/29963/9
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 8 May 2014 01:31:21 +0000 (03:31 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 2 Feb 2015 21:17:54 +0000 (22:17 +0100)
commita145bf9f678156c3e3ee3dcdb2202dbfac4789f2
treed22dbc295ad52161bca337e01f55dd1965205f95
parent943771a42fe19b9c50b8043735114b43414c0fc9
[TASK] Add functional tests for dynamic values in Extbase query cache

For performance reasons Extbase caches database queries. To ensure the
security relevant aspect, the frontend usergroup has to be parameterized
and be added by runtime. This patch adds functional tests to ensure
query caching by:

* adding possibility to simulate a frontend user in functional tests
* extending blog_example extension TCA adding fe_group for blogs
* adding a plugin and controller for blog listing
* adding new fixtures with frontend usergroups restrictions
* adding functional tests and frontend rending function

Resolves: #58655
Releases: master
Change-Id: Ib6d918461d5ad04bc2236a375f558d48548c9946
Reviewed-on: http://review.typo3.org/29963
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
13 files changed:
typo3/sysext/core/Tests/Functional/Fixtures/Frontend/AdditionalConfiguration.php
typo3/sysext/core/Tests/Functional/Framework/Frontend/Hook/FrontendUserHandler.php [new file with mode: 0644]
typo3/sysext/core/Tests/FunctionalTestCase.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/BlogController.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/Blog.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/ext_localconf.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/ext_tables.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/ext_tables.sql
typo3/sysext/extbase/Tests/Functional/Persistence/EnableFieldsTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/Frontend/JsonRenderer.ts [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/blogs-with-fe_groups.xml [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/fe_groups.xml [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/fe_users.xml [new file with mode: 0644]