Skip to content

Commit

Permalink
[BUGFIX] Fixed broken test
Browse files Browse the repository at this point in the history
Refs #793
  • Loading branch information
derhansen committed Nov 7, 2020
1 parent 74cd828 commit d7e831c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/Unit/Controller/AdministrationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ public function listActionDoesNotFetchEventsForStoragePidZero()
$this->inject($this->subject, 'objectManager', $objectManager);

$beUserSessionService = $this->getMockBuilder(BeUserSessionService::class)->getMock();
$beUserSessionService->expects($this->any())->method('getSessionDataByKey');
$beUserSessionService->expects($this->at(0))->method('getSessionDataByKey')
->will($this->returnValue(null));
$beUserSessionService->expects($this->at(1))->method('getSessionDataByKey')
->will($this->returnValue([]));
$this->inject($this->subject, 'beUserSessionService', $beUserSessionService);

$mockBackendUser = $this->getMockBuilder(BackendUserAuthentication::class)->getMock();
Expand All @@ -125,7 +128,7 @@ public function listActionDoesNotFetchEventsForStoragePidZero()
'searchDemand' => null,
'orderByFields' => $this->subject->getOrderByFields(),
'orderDirections' => $this->subject->getOrderDirections(),
'overwriteDemand' => null
'overwriteDemand' => []
]);
$this->inject($this->subject, 'view', $view);

Expand Down

0 comments on commit d7e831c

Please sign in to comment.