diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-25 23:23:56 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-25 23:24:47 +0100 |
commit | 866f5eef01f95c692061acac7a6946db3949e61b (patch) | |
tree | 2ad83bab23b4d0201ea7373683c11eeb08ffb90d /tests/controller | |
parent | 18680c8c448bc296b649c7eaa745468c301bff0f (diff) |
fix bad setter usage
Diffstat (limited to 'tests/controller')
-rw-r--r-- | tests/controller/UserSettingsControllerTest.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/controller/UserSettingsControllerTest.php b/tests/controller/UserSettingsControllerTest.php index 4b561a3e4..6754d0c7a 100644 --- a/tests/controller/UserSettingsControllerTest.php +++ b/tests/controller/UserSettingsControllerTest.php @@ -80,8 +80,7 @@ class UserSettingsControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->api->expects($this->once()) ->method('setUserValue') - ->with($this->equalTo($this->user), - $this->equalTo('showAll'), + ->with($this->equalTo('showAll'), $this->equalTo(true)); $result = $this->controller->show(); } @@ -93,8 +92,7 @@ class UserSettingsControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->api->expects($this->once()) ->method('setUserValue') - ->with($this->equalTo($this->user), - $this->equalTo('showAll'), + ->with($this->equalTo('showAll'), $this->equalTo(false)); $result = $this->controller->hide(); } @@ -109,9 +107,8 @@ class UserSettingsControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->api->expects($this->once()) ->method('getUserValue') - ->with($this->equalTo($this->user), - $this->equalTo('showAll')) - ->will($this->returnValue('true')); + ->with($this->equalTo('showAll')) + ->will($this->returnValue('1')); $response = $this->controller->read(); $this->assertEquals($result, $response->getParams()); |