[TASK] Clean up form protection tests 30/19430/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 29 Mar 2013 12:29:32 +0000 (13:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 29 Mar 2013 12:37:30 +0000 (13:37 +0100)
commitbdd5c9e13fee23b35abbefc80d99d31abfa61920
treee68b9ab9ff8bbb1aae60e59467e9f5ed557370e1
parent61b6d47cff64b60e0ae7a7fbae5ddae8ab58cb93
[TASK] Clean up form protection tests

The form protection tests need a refactoring to use the new flash
message handling. Additionally, the tests are adapted to use better
mocking and accessible proxies where needed.

Change-Id: I5d3b008770bc1b74eeff8fd568f01084915cd226
Resolves: #46772
Related: #44593
Releases: 6.1
Reviewed-on: https://review.typo3.org/19430
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/FormProtection/BackendFormProtection.php
typo3/sysext/core/Classes/Messaging/FlashMessageService.php
typo3/sysext/core/Tests/Unit/FormProtection/BackendFormProtectionTest.php
typo3/sysext/core/Tests/Unit/FormProtection/InstallToolFormProtectionTest.php