summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/controller/PageControllerTest.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php
index 1e898c146..4789fcbe7 100644
--- a/tests/unit/controller/PageControllerTest.php
+++ b/tests/unit/controller/PageControllerTest.php
@@ -58,11 +58,13 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase {
public function testSettings() {
$result = [
- 'showAll' => true,
- 'compact' => true,
- 'readOnScroll' => true,
- 'oldestFirst' => true,
- 'language' => 'de',
+ 'settings' => [
+ 'showAll' => true,
+ 'compact' => true,
+ 'preventReadOnScroll' => true,
+ 'oldestFirst' => true,
+ 'language' => 'de',
+ ]
];
$this->l10n->expects($this->once())
@@ -84,7 +86,7 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase {
->method('getUserValue')
->with($this->equalTo($this->user),
$this->equalTo($this->appName),
- $this->equalTo('readOnScroll'))
+ $this->equalTo('preventReadOnScroll'))
->will($this->returnValue('1'));
$this->settings->expects($this->at(3))
->method('getUserValue')
@@ -115,7 +117,7 @@ class PageControllerTest extends \PHPUnit_Framework_TestCase {
->method('setUserValue')
->with($this->equalTo($this->user),
$this->equalTo($this->appName),
- $this->equalTo('readOnScroll'),
+ $this->equalTo('preventReadOnScroll'),
$this->equalTo(true));
$this->settings->expects($this->at(3))
->method('setUserValue')