[BUGFIX] Tests: Improve mocking in ext:belog 15/28215/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 10 Mar 2014 10:57:53 +0000 (11:57 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 10 Mar 2014 11:15:02 +0000 (12:15 +0100)
commit9e7e81fb6a88269ec05d37583c8857f897292cd0
tree0311838a3276a76c5aebabbbe3ed598491c14afb
parent813a77b0c014793994f1acd94291268fcdd54b96
[BUGFIX] Tests: Improve mocking in ext:belog

The subject method initialize() calls some static dependencies
that can not be mocked. They do DB actions in the end. The patch
now mocks TYPO3_DB to suppress this DB call.

Change-Id: I43b0e002bfab081ed41a5c259011f465b507a74b
Resolves: #56718
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/28215
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/belog/Tests/Unit/Domain/Repository/LogEntryRepositoryTest.php