[BUGFIX] Page tree unit test fails if pages don't exist
authorSusanne Moog <typo3@susannemoog.de>
Sat, 30 Jun 2012 14:54:11 +0000 (16:54 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 30 Jun 2012 16:59:16 +0000 (18:59 +0200)
commitd5ff018aaa062ff273110c291e26430a1b604b01
treefd7eb57b6d7b54f82bf5141d23c814cc69356cdd
parenta6ddef3817840ab0cd2ca940f35cf8f1c310c9cd
[BUGFIX] Page tree unit test fails if pages don't exist

The unit test getNodesSetsIsMountPointField fails if
the pages with uid 1, 2, 3 are not available.

Instead of relying on user dependent data, we should mock
it. The patch introduces a wrapper method for getRecordWSOL
to be able to mock that method and changes the test to do
that.

Change-Id: I36ec23a47bd39821595e787fba1cb8b77e2c3b0c
Fixes: #38503
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/12478
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataprovider.php
tests/Unit/t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataproviderTest.php