summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/PageControllerTest.php
diff options
context:
space:
mode:
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