summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 19:22:55 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 19:22:55 +0200
commitb567d32b0e51fda52308cc3b64e8c21c969d33eb (patch)
tree2cf8d873a7d06a17df67c66e4e38198535317c56 /tests
parentd9acb9ed876d9814e468081d799f06ffd631580f (diff)
first commit, nothing working yet
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')