diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-23 01:25:55 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-23 01:25:55 +0200 |
commit | 4eaee79d9b27d9131bd862725dbe90ba54eec254 (patch) | |
tree | 4b6de904b6167d7ed6070d24e7f41ff8c5f6c500 /tests/unit/controller/FeedControllerTest.php | |
parent | 7af31802517eb31a05e1c5d248a8c502d9d8b943 (diff) |
implement #137 serverside
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r-- | tests/unit/controller/FeedControllerTest.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/unit/controller/FeedControllerTest.php b/tests/unit/controller/FeedControllerTest.php index c756875d2..fc46594a8 100644 --- a/tests/unit/controller/FeedControllerTest.php +++ b/tests/unit/controller/FeedControllerTest.php @@ -229,10 +229,11 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase { ->method('create') ->with($this->equalTo('hi'), $this->equalTo(4), - $this->equalTo($this->user)) + $this->equalTo($this->user), + $this->equalTo('yo')) ->will($this->returnValue($result['feeds'][0])); - $response = $this->controller->create('hi', 4); + $response = $this->controller->create('hi', 4, 'yo'); $this->assertEquals($result, $response); } @@ -253,10 +254,11 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase { ->method('create') ->with($this->equalTo('hi'), $this->equalTo(4), - $this->equalTo($this->user)) + $this->equalTo($this->user), + $this->equalTo('yo')) ->will($this->returnValue($result['feeds'][0])); - $response = $this->controller->create('hi', 4); + $response = $this->controller->create('hi', 4, 'yo'); $this->assertEquals($result, $response); } @@ -272,7 +274,7 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase { ->method('create') ->will($this->throwException($ex)); - $response = $this->controller->create('hi', 4); + $response = $this->controller->create('hi', 4, 'test'); $params = json_decode($response->render(), true); $this->assertEquals($msg, $params['message']); @@ -290,7 +292,7 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase { ->method('create') ->will($this->throwException($ex)); - $response = $this->controller->create('hi', 4); + $response = $this->controller->create('hi', 4, 'test'); $params = json_decode($response->render(), true); $this->assertEquals($msg, $params['message']); |