diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-02-16 21:17:10 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-02-20 13:57:09 +0100 |
commit | 4a107b3d53c4fe651ac704251b99e04a53cd587f (patch) | |
tree | 9700c89992f1ad739023d73fcd434250c323089e /tests/Unit/Service | |
parent | 01e1db329ced43323654990828744d577cac4ba8 (diff) |
General: Fix folder query
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Service')
-rw-r--r-- | tests/Unit/Service/ItemServiceTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Unit/Service/ItemServiceTest.php b/tests/Unit/Service/ItemServiceTest.php index e82d5eda7..f91692cda 100644 --- a/tests/Unit/Service/ItemServiceTest.php +++ b/tests/Unit/Service/ItemServiceTest.php @@ -21,7 +21,7 @@ use OCA\News\Service\ItemServiceV2; use \OCP\AppFramework\Db\DoesNotExistException; use \OCA\News\Db\Item; -use \OCA\News\Db\FeedType; +use \OCA\News\Db\ListType; use OCP\AppFramework\Db\MultipleObjectsReturnedException; use OCP\IConfig; @@ -133,7 +133,7 @@ class ItemServiceTest extends TestCase $this->mapper->expects($this->never()) ->method('findAllAfter'); - $result = $this->class->findAllAfter($this->user, 3, 20333); + $result = $this->class->findAllAfter($this->user, 5, 20333); $this->assertEquals([], $result); } @@ -176,7 +176,7 @@ class ItemServiceTest extends TestCase public function testFindAllItems() { - $type = FeedType::STARRED; + $type = ListType::STARRED; $this->mapper->expects($this->once()) ->method('findAllItems') ->with('jack', $type, 20, 5, true, []) @@ -188,7 +188,7 @@ class ItemServiceTest extends TestCase public function testFindAllSearch() { - $type = FeedType::STARRED; + $type = ListType::STARRED; $search = ['test']; |