summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-23 16:18:43 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-23 16:18:43 +0100
commitecc4a533ccf0c56527b4aaaa94a22a0dddf29fa2 (patch)
tree72955c4a30595c4a8f20fbb1672c441a553df4f1 /tests
parentd65fa8090469286396342ff2299b58b79d83f8f3 (diff)
use all articles if active feed is null
Diffstat (limited to 'tests')
-rw-r--r--tests/controller/FeedControllerTest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/controller/FeedControllerTest.php b/tests/controller/FeedControllerTest.php
index 6adae204c..4ccb7bed6 100644
--- a/tests/controller/FeedControllerTest.php
+++ b/tests/controller/FeedControllerTest.php
@@ -215,6 +215,25 @@ class FeedControllerTest extends ControllerTestUtility {
}
+ public function testActiveActiveIsNull(){
+ $id = 3;
+ $type = null;
+ $result = array(
+ 'activeFeed' => array(
+ 'id' => 0,
+ 'type' => FeedType::SUBSCRIPTIONS
+ )
+ );
+
+ $this->activeInitMocks($id, $type);
+
+ $response = $this->controller->active();
+
+ $this->assertEquals($result, $response->getParams());
+ $this->assertTrue($response instanceof JSONResponse);
+ }
+
+
public function testCreate(){
$result = array(
'feeds' => array(new Feed())