summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/FeedControllerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-16 01:19:29 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-16 01:19:29 +0200
commit054aad5a6968c13b9580109c7df3129a1db6f8a4 (patch)
tree2e35e4374d3fd011859371174238c480b9c6ba0f /tests/unit/controller/FeedControllerTest.php
parentb485ec1da214e13ec5731df6a56072b3ed3aed23 (diff)
fix coding style and dead code
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r--tests/unit/controller/FeedControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/controller/FeedControllerTest.php b/tests/unit/controller/FeedControllerTest.php
index a2fc8bc22..c756875d2 100644
--- a/tests/unit/controller/FeedControllerTest.php
+++ b/tests/unit/controller/FeedControllerTest.php
@@ -426,11 +426,11 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase {
$this->feedService->expects($this->once())
->method('importArticles')
- ->with($this->equalTo('json'),
+ ->with($this->equalTo(array('json')),
$this->equalTo($this->user))
->will($this->returnValue($feed));
- $response = $this->controller->import('json');
+ $response = $this->controller->import(array('json'));
$this->assertEquals($expected, $response);
}
@@ -439,11 +439,11 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase {
public function testImportCreatesNoAdditionalFeed() {
$this->feedService->expects($this->once())
->method('importArticles')
- ->with($this->equalTo('json'),
+ ->with($this->equalTo(array('json')),
$this->equalTo($this->user))
->will($this->returnValue(null));
- $response = $this->controller->import('json');
+ $response = $this->controller->import(array('json'));
$this->assertEquals([], $response);
}