Skip to content

Commit 20556b0

Browse files
committed
[TASK] Fix Unittests
Extend the $mockContext with an method getDimensions that returns an empty array to fix the current tests
1 parent a9e882c commit 20556b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tests/Unit/Eel/ElasticSearchQueryBuilderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function setUp() {
2727
$node = $this->getMock('TYPO3\TYPO3CR\Domain\Model\NodeInterface');
2828
$node->expects($this->any())->method('getPath')->will($this->returnValue('/foo/bar'));
2929
$mockContext = $this->getMockBuilder('TYPO3\TYPO3CR\Domain\Service\Context')->disableOriginalConstructor()->getMock();
30+
$mockContext->expects($this->any())->method('getDimensions')->will($this->returnValue(array()));
3031
$node->expects($this->any())->method('getContext')->will($this->returnValue($mockContext));
3132

3233
$mockWorkspace = $this->getMockBuilder('TYPO3\TYPO3CR\Domain\Model\Workspace')->disableOriginalConstructor()->getMock();

0 commit comments

Comments
 (0)