summaryrefslogtreecommitdiffstats
path: root/tests/unit/service/ItemServiceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/service/ItemServiceTest.php')
-rw-r--r--tests/unit/service/ItemServiceTest.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/tests/unit/service/ItemServiceTest.php b/tests/unit/service/ItemServiceTest.php
index e9c8e70c4..81cbf1bff 100644
--- a/tests/unit/service/ItemServiceTest.php
+++ b/tests/unit/service/ItemServiceTest.php
@@ -127,14 +127,14 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase {
$this->equalTo($this->limit),
$this->equalTo($this->offset),
$this->equalTo($this->status),
- $this->equalTo($this->user),
- $this->equalTo(false))
+ $this->equalTo(false),
+ $this->equalTo($this->user))
->will($this->returnValue($this->response));
$result = $this->itemService->findAll(
- $this->id, $type, $this->limit,
- $this->offset, $this->showAll,
- $this->user);
+ $this->id, $type, $this->limit, $this->offset,
+ $this->showAll, false, $this->user
+ );
$this->assertEquals($this->response, $result);
}
@@ -147,13 +147,14 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase {
$this->equalTo($this->limit),
$this->equalTo($this->offset),
$this->equalTo($this->status),
+ $this->equalTo(true),
$this->equalTo($this->user))
->will($this->returnValue($this->response));
$result = $this->itemService->findAll(
- $this->id, $type, $this->limit,
- $this->offset, $this->showAll,
- $this->user);
+ $this->id, $type, $this->limit, $this->offset,
+ $this->showAll, true, $this->user
+ );
$this->assertEquals($this->response, $result);
}
@@ -165,14 +166,14 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase {
->with( $this->equalTo($this->limit),
$this->equalTo($this->offset),
$this->equalTo($this->status),
- $this->equalTo($this->user),
- $this->equalTo(true))
+ $this->equalTo(true),
+ $this->equalTo($this->user))
->will($this->returnValue($this->response));
$result = $this->itemService->findAll(
- $this->id, $type, $this->limit,
- $this->offset, $this->showAll,
- $this->user, true);
+ $this->id, $type, $this->limit, $this->offset,
+ $this->showAll, true, $this->user
+ );
$this->assertEquals($this->response, $result);
}