diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-29 22:58:30 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-29 22:58:30 +0200 |
commit | cba949fb0771c832326fc7886cced2bdc37e7536 (patch) | |
tree | 9e1a335a83a6006f645c801b762db7525e4c6c59 /tests/unit/service | |
parent | b91ef01fdbf14c6a5d58e5c471dbb1fc9d17cdfb (diff) |
order by pubdate
Diffstat (limited to 'tests/unit/service')
-rw-r--r-- | tests/unit/service/ItemServiceTest.php | 27 |
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); } |