Skip to content

Commit d62647f

Browse files
committed
[Tests] Fixed test
1 parent fbdadea commit d62647f

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

tests/bundle/Functional/SearchView/Criterion/IsBookmarkedTest.php

+19-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010

1111
final class IsBookmarkedTest extends SearchCriterionTestCase
1212
{
13+
protected function setUp(): void
14+
{
15+
parent::setUp();
16+
17+
$this->addMediaFolderToBookmarks();
18+
}
19+
1320
/**
1421
* @phpstan-return iterable<
1522
* string,
@@ -25,13 +32,23 @@ public function getCriteriaPayloads(): iterable
2532
yield 'Bookmarked locations' => [
2633
'json',
2734
$this->buildJsonCriterionQuery('"IsBookmarkedCriterion": true'),
28-
4,
35+
1,
2936
];
3037

3138
yield 'Not bookmarked locations' => [
3239
'json',
3340
$this->buildJsonCriterionQuery('"IsBookmarkedCriterion": false'),
34-
19,
41+
12,
3542
];
3643
}
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+
}
3754
}

0 commit comments

Comments
 (0)