summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller/FeedControllerTest.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-02-16 21:17:10 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-02-20 13:57:09 +0100
commit4a107b3d53c4fe651ac704251b99e04a53cd587f (patch)
tree9700c89992f1ad739023d73fcd434250c323089e /tests/Unit/Controller/FeedControllerTest.php
parent01e1db329ced43323654990828744d577cac4ba8 (diff)
General: Fix folder query
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Controller/FeedControllerTest.php')
-rw-r--r--tests/Unit/Controller/FeedControllerTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Unit/Controller/FeedControllerTest.php b/tests/Unit/Controller/FeedControllerTest.php
index b8929d373..cf7bc501e 100644
--- a/tests/Unit/Controller/FeedControllerTest.php
+++ b/tests/Unit/Controller/FeedControllerTest.php
@@ -22,7 +22,7 @@ use OCA\News\Service\ItemServiceV2;
use OCP\AppFramework\Http;
use OCA\News\Db\Feed;
-use OCA\News\Db\FeedType;
+use OCA\News\Db\ListType;
use OCA\News\Service\Exceptions\ServiceNotFoundException;
use OCA\News\Service\Exceptions\ServiceConflictException;
use OCP\IConfig;
@@ -125,7 +125,7 @@ class FeedControllerTest extends TestCase
$this->exampleResult = [
'activeFeed' => [
'id' => 0,
- 'type' => FeedType::SUBSCRIPTIONS
+ 'type' => ListType::ALL_ITEMS
]
];
}
@@ -207,7 +207,7 @@ class FeedControllerTest extends TestCase
public function testActive()
{
$id = 3;
- $type = FeedType::STARRED;
+ $type = ListType::STARRED;
$result = [
'activeFeed' => [
'id' => $id,
@@ -226,7 +226,7 @@ class FeedControllerTest extends TestCase
public function testActiveFeed()
{
$id = 3;
- $type = FeedType::FEED;
+ $type = ListType::FEED;
$result = [
'activeFeed' => [
'id' => $id,
@@ -250,7 +250,7 @@ class FeedControllerTest extends TestCase
public function testActiveFeedDoesNotExist()
{
$id = 3;
- $type = FeedType::FEED;
+ $type = ListType::FEED;
$ex = new ServiceNotFoundException('hiu');
$result = $this->exampleResult;
@@ -269,7 +269,7 @@ class FeedControllerTest extends TestCase
public function testActiveFolder()
{
- $type = FeedType::FOLDER;
+ $type = ListType::FOLDER;
$folder = new Folder();
$folder->setId(3);
@@ -296,7 +296,7 @@ class FeedControllerTest extends TestCase
public function testActiveFolderDoesNotExist()
{
$id = 3;
- $type = FeedType::FOLDER;
+ $type = ListType::FOLDER;
$ex = new ServiceNotFoundException('hiu');
$result = $this->exampleResult;