summaryrefslogtreecommitdiffstats
path: root/tests/controller/UserSettingsControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controller/UserSettingsControllerTest.php')
-rw-r--r--tests/controller/UserSettingsControllerTest.php11
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());