[TASK] Clean up tests from Context API refactoring 57/57757/3
authorBenni Mack <benni@typo3.org>
Wed, 1 Aug 2018 15:23:34 +0000 (17:23 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 1 Aug 2018 19:18:50 +0000 (21:18 +0200)
commita6f038f3e14155c9eeaa1dab9c9db2df9f6b1e46
treee34d1eeb08ccb804e3476f0c6f376dbd0490f48a
parent61f289b3d8ad2b3b5fcaf6e34f45bbc7051848ae
[TASK] Clean up tests from Context API refactoring

Due to the Context API a lot less mocking needs to be done, and tests can be cleaned up.

On top, cObject receives a TSFE object as first parameter as DI, which can be used in
the code instead of global variables.

Resolves: #85708
Releases: master
Change-Id: I9d662b6735983d71e0b046548b747ac9b7f529db
Reviewed-on: https://review.typo3.org/57757
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php
typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php
typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php
typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php