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/Db/ItemMapperTest.php | |
parent | 01e1db329ced43323654990828744d577cac4ba8 (diff) |
General: Fix folder query
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Db/ItemMapperTest.php')
-rw-r--r-- | tests/Unit/Db/ItemMapperTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 878f8c59d..c1e946d2b 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -13,6 +13,7 @@ namespace OCA\News\Tests\Unit\Db; +use OC\DB\QueryBuilder\Literal; use OCA\News\Db\Feed; use OCA\News\Db\FeedMapperV2; use OCA\News\Db\Folder; @@ -1691,7 +1692,7 @@ class ItemMapperTest extends MapperTestUtility $expr->expects($this->once()) ->method('eq') - ->with('feeds.folder_id', 2) + ->with('feeds.folder_id', new Literal(2)) ->will($this->returnValue('x = y')); $this->db->expects($this->once()) |