From b567d32b0e51fda52308cc3b64e8c21c969d33eb Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 14 May 2014 19:22:55 +0200 Subject: first commit, nothing working yet --- tests/unit/controller/PageControllerTest.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tests') 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') -- cgit v1.2.3