Fix failing PageController test

Signed-off-by: Paul Schwörer <hello@paulschwoerer.de>
This commit is contained in:
Paul Schwörer 2020-01-19 18:02:07 +01:00
Родитель 4cb2861660
Коммит 24dc9acde5
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -24,6 +24,7 @@ class PageControllerTest extends \PHPUnit\Framework\TestCase {
protected function setUp(): void {
$request = $this->getMockBuilder('OCP\IRequest')->getMock();
$initialStateService = $this->getMockBuilder('OCP\IInitialStateService')->getMock();
$this->app = new Application();
$this->container = $this->app->getContainer();
$c = $this->container;
@ -33,7 +34,7 @@ class PageControllerTest extends \PHPUnit\Framework\TestCase {
$this->config->setAppValue('maps', 'graphhopperURL', 'https://graphhopper.com:8080');
$this->controller = new PageController(
'maps', $request, $this->userId, $this->config
'maps', $request, $this->userId, $this->config, $initialStateService
);
}