File tree 1 file changed +19
-2
lines changed
tests/bundle/Functional/SearchView/Criterion
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
final class IsBookmarkedTest extends SearchCriterionTestCase
12
12
{
13
+ protected function setUp (): void
14
+ {
15
+ parent ::setUp ();
16
+
17
+ $ this ->addMediaFolderToBookmarks ();
18
+ }
19
+
13
20
/**
14
21
* @phpstan-return iterable<
15
22
* string,
@@ -25,13 +32,23 @@ public function getCriteriaPayloads(): iterable
25
32
yield 'Bookmarked locations ' => [
26
33
'json ' ,
27
34
$ this ->buildJsonCriterionQuery ('"IsBookmarkedCriterion": true ' ),
28
- 4 ,
35
+ 1 ,
29
36
];
30
37
31
38
yield 'Not bookmarked locations ' => [
32
39
'json ' ,
33
40
$ this ->buildJsonCriterionQuery ('"IsBookmarkedCriterion": false ' ),
34
- 19 ,
41
+ 12 ,
35
42
];
36
43
}
44
+
45
+ private function addMediaFolderToBookmarks (): void
46
+ {
47
+ $ request = $ this ->createHttpRequest (
48
+ 'POST ' ,
49
+ '/api/ibexa/v2/bookmark/43 '
50
+ );
51
+
52
+ $ this ->sendHttpRequest ($ request );
53
+ }
37
54
}
You can’t perform that action at this time.
0 commit comments