diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-09 15:09:34 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-09 15:09:34 +0200 |
commit | 03baa5ba68daa09110940c416b3cb065a9e9ca7a (patch) | |
tree | e4d76db78c422df49901733234814fcf08354234 /tests/unit/controller | |
parent | 319a6f848d6a28dfb44320e02bde0b3fab6c6bc3 (diff) |
reorganize templates
Diffstat (limited to 'tests/unit/controller')
-rw-r--r-- | tests/unit/controller/PageControllerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
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); |