[BUGFIX] Fix incomplete mocking in DataMapFactoryTest 28/24628/2
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Sat, 12 Oct 2013 12:22:54 +0000 (14:22 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 12 Oct 2013 21:45:14 +0000 (23:45 +0200)
commitc7650872897e33569284dc7a204ee77b252acb76
treeaa276fcd0aea46516dd1e02b368caf6f95185d6b
parent4907c200de0146f74b0b075c158b853239ba3a6e
[BUGFIX] Fix incomplete mocking in DataMapFactoryTest

Using "expects" on $mockDataMapFactory may fail with
several methods like "setOneToOneRelation" as these methods
return a ColumnMap object but the mock doesn't.

This patch adds the missing "->will($this->return())"
for these methods.

Releases: 6.2
Resolves: #52724
Change-Id: Ic91a7c51b1451c039e20b8ac310fdb25b02e1d84
Reviewed-on: https://review.typo3.org/24628
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php