From 4faa08d70891da48a0f7647f7eb8730f7f9dc82e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 12 Jun 2013 14:50:15 +0200 Subject: add annotations for api controllers --- tests/unit/controller/FeedControllerTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/unit/controller') diff --git a/tests/unit/controller/FeedControllerTest.php b/tests/unit/controller/FeedControllerTest.php index 370158822..064fdeeb4 100644 --- a/tests/unit/controller/FeedControllerTest.php +++ b/tests/unit/controller/FeedControllerTest.php @@ -84,9 +84,9 @@ class FeedControllerTest extends ControllerTestUtility { ); $request = $this->getRequest($post); - return new FeedController($this->api, $request, + return new FeedController($this->api, $request, $this->folderBusinessLayer, - $this->feedBusinessLayer, + $this->feedBusinessLayer, $this->itemBusinessLayer); } @@ -293,7 +293,7 @@ class FeedControllerTest extends ControllerTestUtility { $response = $this->controller->active(); $this->assertEquals($result, $response->getParams()); - $this->assertTrue($response instanceof JSONResponse); + $this->assertTrue($response instanceof JSONResponse); } @@ -330,7 +330,7 @@ class FeedControllerTest extends ControllerTestUtility { $this->assertEquals($result, $response->getParams()); $this->assertTrue($response instanceof JSONResponse); - } + } public function testCreateNoItems(){ @@ -366,7 +366,7 @@ class FeedControllerTest extends ControllerTestUtility { $this->assertEquals($result, $response->getParams()); $this->assertTrue($response instanceof JSONResponse); - } + } public function testCreateReturnsErrorForInvalidCreate(){ @@ -507,7 +507,7 @@ class FeedControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->feedBusinessLayer->expects($this->once()) ->method('move') - ->with($this->equalTo($url['feedId']), + ->with($this->equalTo($url['feedId']), $this->equalTo($post['parentFolderId']), $this->equalTo($this->user)); @@ -559,7 +559,7 @@ class FeedControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->feedBusinessLayer->expects($this->once()) ->method('importGoogleReaderJSON') - ->with($this->equalTo($post['json']), + ->with($this->equalTo($post['json']), $this->equalTo($this->user)) ->will($this->returnValue($feed)); @@ -614,7 +614,7 @@ class FeedControllerTest extends ControllerTestUtility { ->with($this->equalTo($url['feedId'])); $response = $this->controller->restore(); - $this->assertTrue($response instanceof JSONResponse); + $this->assertTrue($response instanceof JSONResponse); } @@ -640,4 +640,4 @@ class FeedControllerTest extends ControllerTestUtility { $this->assertTrue($response instanceof JSONResponse); } -} \ No newline at end of file +} -- cgit v1.2.3