Skip to content

Commit

Permalink
test(findAll): Add bookmark without tags
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Oct 6, 2024
1 parent 17cdb8b commit 9efa644
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/FindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public function testFindAllWithAnd() {

$params = new QueryParameters();
$bookmarks = $this->bookmarkMapper->findAll($this->userId, $params->setSearch(['.com']));
$this->assertCount(2, $bookmarks);
$this->assertCount(3, $bookmarks);
}


public function testFindAllWithOr() {
$params = new QueryParameters();
$bookmarks = $this->bookmarkMapper->findAll($this->userId, $params->setSearch(['wikipedia', 'nextcloud'])->setConjunction(QueryParameters::CONJ_OR));
$this->assertCount(2, $bookmarks);
$this->assertCount(3, $bookmarks);
}

public function testFindByTags() {
Expand All @@ -123,6 +123,7 @@ public function singleBookmarksProvider() {
[['two'], ['url' => 'https://nextcloud.com/', 'title' => 'Nextcloud', 'description' => '']],
[['three', 'one'], ['url' => 'https://php.net/', 'title' => '', 'description' => '']],
[['two', 'four', 'one'], ['url' => 'https://de.wikipedia.org/wiki/%C3%9C', 'title' => '', 'description' => '']],
[[],['url' => 'https://github.com/nextcloud/bookmarks/projects/1', 'title' => '', 'description' => '']],
]);
}
}

0 comments on commit 9efa644

Please sign in to comment.