From 03baa5ba68daa09110940c416b3cb065a9e9ca7a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 9 Sep 2014 15:09:34 +0200 Subject: reorganize templates --- tests/unit/controller/PageControllerTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php index c86e8cfba..d27049f95 100644 --- a/tests/unit/controller/PageControllerTest.php +++ b/tests/unit/controller/PageControllerTest.php @@ -41,14 +41,14 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase { '\OCP\IRequest') ->disableOriginalConstructor() ->getMock(); - $this->controller = new PageController($this->appName, $this->request, + $this->controller = new PageController($this->appName, $this->request, $this->settings, $this->l10n, $this->user); } public function testIndex(){ $response = $this->controller->index(); - $this->assertEquals('main', $response->getTemplateName()); + $this->assertEquals('index', $response->getTemplateName()); } @@ -101,25 +101,25 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase { ->method('setUserValue') ->with($this->equalTo($this->user), $this->equalTo($this->appName), - $this->equalTo('showAll'), + $this->equalTo('showAll'), $this->equalTo(true)); $this->settings->expects($this->at(1)) ->method('setUserValue') ->with($this->equalTo($this->user), $this->equalTo($this->appName), - $this->equalTo('compact'), + $this->equalTo('compact'), $this->equalTo(true)); $this->settings->expects($this->at(2)) ->method('setUserValue') ->with($this->equalTo($this->user), $this->equalTo($this->appName), - $this->equalTo('preventReadOnScroll'), + $this->equalTo('preventReadOnScroll'), $this->equalTo(false)); $this->settings->expects($this->at(3)) ->method('setUserValue') ->with($this->equalTo($this->user), $this->equalTo($this->appName), - $this->equalTo('oldestFirst'), + $this->equalTo('oldestFirst'), $this->equalTo(true)); $this->controller->updateSettings(true, true, false, true); -- cgit v1.2.3