diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-09 16:10:48 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-09 22:52:27 +0200 |
commit | 643fa4624dd7ba2db1349f16131bf330aeee3387 (patch) | |
tree | 73bc787a3eb1ed5f53ab932187546c980ac50bb5 /tests/unit/controller/FeedControllerTest.php | |
parent | efe9db1e064c9736fe35c27040ee60fa28ca8d4d (diff) |
port to internal controller, some routes are still broken
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r-- | tests/unit/controller/FeedControllerTest.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/unit/controller/FeedControllerTest.php b/tests/unit/controller/FeedControllerTest.php index ac7b998cb..90c1b8e14 100644 --- a/tests/unit/controller/FeedControllerTest.php +++ b/tests/unit/controller/FeedControllerTest.php @@ -91,7 +91,7 @@ class FeedControllerTest extends ControllerTestUtility { public function testFeedsAnnotations(){ - $this->assertFeedControllerAnnotations('feeds'); + $this->assertFeedControllerAnnotations('index'); } @@ -126,14 +126,14 @@ class FeedControllerTest extends ControllerTestUtility { public function testImportArticlesAnnotations(){ - $this->assertFeedControllerAnnotations('importArticles'); + $this->assertFeedControllerAnnotations('import'); } public function testReadAnnotations(){ $this->assertFeedControllerAnnotations('read'); } - public function testFeeds(){ + public function testIndex(){ $result = array( 'feeds' => array( array('a feed'), @@ -156,14 +156,14 @@ class FeedControllerTest extends ControllerTestUtility { ->with($this->equalTo($this->user)) ->will($this->returnValue($result['starred'])); - $response = $this->controller->feeds(); + $response = $this->controller->index(); $this->assertEquals($result, $response->getData()); $this->assertTrue($response instanceof JSONResponse); } - public function testFeedsHighestItemIdExists(){ + public function testIndexHighestItemIdExists(){ $result = array( 'feeds' => array( array('a feed'), @@ -187,7 +187,7 @@ class FeedControllerTest extends ControllerTestUtility { ->with($this->equalTo($this->user)) ->will($this->returnValue($result['starred'])); - $response = $this->controller->feeds(); + $response = $this->controller->index(); $this->assertEquals($result, $response->getData()); $this->assertTrue($response instanceof JSONResponse); @@ -620,7 +620,7 @@ class FeedControllerTest extends ControllerTestUtility { } - public function testImportArticles() { + public function testImport() { $feed = new Feed(); $post = array( @@ -640,14 +640,14 @@ class FeedControllerTest extends ControllerTestUtility { $this->equalTo($this->user)) ->will($this->returnValue($feed)); - $response = $this->controller->importArticles(); + $response = $this->controller->import(); $this->assertEquals($expected, $response->getData()); $this->assertTrue($response instanceof JSONResponse); } - public function testImportArticlesCreatesNoAdditionalFeed() { + public function testImportCreatesNoAdditionalFeed() { $feed = new Feed(); $post = array( @@ -665,7 +665,7 @@ class FeedControllerTest extends ControllerTestUtility { $this->equalTo($this->user)) ->will($this->returnValue(null)); - $response = $this->controller->importArticles(); + $response = $this->controller->import(); $this->assertEquals($expected, $response->getData()); $this->assertTrue($response instanceof JSONResponse); |