summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/PageControllerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-16 01:19:29 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-16 01:19:29 +0200
commit054aad5a6968c13b9580109c7df3129a1db6f8a4 (patch)
tree2e35e4374d3fd011859371174238c480b9c6ba0f /tests/unit/controller/PageControllerTest.php
parentb485ec1da214e13ec5731df6a56072b3ed3aed23 (diff)
fix coding style and dead code
Diffstat (limited to 'tests/unit/controller/PageControllerTest.php')
-rw-r--r--tests/unit/controller/PageControllerTest.php19
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php
index 4789fcbe7..0e0959ea7 100644
--- a/tests/unit/controller/PageControllerTest.php
+++ b/tests/unit/controller/PageControllerTest.php
@@ -118,30 +118,15 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase {
->with($this->equalTo($this->user),
$this->equalTo($this->appName),
$this->equalTo('preventReadOnScroll'),
- $this->equalTo(true));
+ $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(true));
- $this->controller->updateSettings(true, true, true, true);
+ $this->controller->updateSettings(true, true, false, true);
}
-
- public function testUpdateSettingsNoParameterShouldNotSetIt() {
- $this->controller = new PageController($this->appName, $this->request,
- $this->settings, $this->l10n, $this->user);
-
- $this->settings->expects($this->once())
- ->method('setUserValue')
- ->with($this->equalTo($this->user),
- $this->equalTo($this->appName),
- $this->equalTo('showAll'),
- $this->equalTo(true));
-
- $this->controller->updateSettings(true, null, null, null);
-
- }
} \ No newline at end of file