File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,35 @@ public function testFindAllWithOr() {
102
102
103
103
public function testFindByTags () {
104
104
$ params = new QueryParameters ();
105
- $ bookmarks = $ this ->bookmarkMapper ->findALl ($ this ->userId , $ params ->setTags (['one ' , 'three ' ]));
105
+ $ bookmarks = $ this ->bookmarkMapper ->findAll ($ this ->userId , $ params ->setTags (['one ' , 'three ' ]));
106
106
$ this ->assertCount (1 , $ bookmarks );
107
107
}
108
108
109
109
public function testFindByTagsAndSearch () {
110
110
$ params = new QueryParameters ();
111
- $ bookmarks = $ this ->bookmarkMapper ->findALl ($ this ->userId , $ params ->setTags (['one ' ])->setSearch (['php ' ]));
111
+ $ bookmarks = $ this ->bookmarkMapper ->findAll ($ this ->userId , $ params ->setTags (['one ' ])->setSearch (['php ' ]));
112
112
$ this ->assertCount (1 , $ bookmarks );
113
113
}
114
114
115
+ public function testFindByFolderSortTitle () {
116
+ $ rootFolder = $ this ->folderMapper ->findRootFolder ($ this ->userId );
117
+ $ params = new QueryParameters ();
118
+ $ bookmarks = $ this ->bookmarkMapper ->findAll ($ this ->userId ,
119
+ $ params
120
+ ->setFolder ($ rootFolder ->getId ())
121
+ ->setSortBy ('title ' )
122
+ ->setSoftDeleted (false )
123
+ ->setSoftDeletedFolders (false )
124
+ ->setConjunction ('or ' )
125
+ ->setLimit (100 )
126
+ ->setOffset (0 )
127
+ ->setUntagged (false )
128
+ ->setTags ([])
129
+ ->setSearch ([])
130
+ );
131
+ $ this ->assertCount (5 , $ bookmarks );
132
+ }
133
+
115
134
/**
116
135
* @return array
117
136
*/
You can’t perform that action at this time.
0 commit comments