Skip to content

Commit

Permalink
[Tests] Added IsBookmarkedTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Aug 22, 2024
1 parent 48a5f14 commit e04acd6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/bundle/Functional/SearchView/Criterion/IsBookmarkedTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace Ibexa\Tests\Bundle\Rest\Functional\SearchView\Criterion;

use Ibexa\Tests\Bundle\Rest\Functional\SearchView\SearchCriterionTestCase;

final class IsBookmarkedTest extends SearchCriterionTestCase
{
/**
* @phpstan-return iterable<
* string,
* array{
* string,
* string,
* int,
* },
* >
*/
public function getCriteriaPayloads(): iterable
{
yield 'Bookmarked locations' => [
'json',
$this->buildJsonCriterionQuery('"IsBookmarkedCriterion": true'),
4,
];

yield 'Not bookmarked locations' => [
'json',
$this->buildJsonCriterionQuery('"IsBookmarkedCriterion": false'),
19,
];
}
}

0 comments on commit e04acd6

Please sign in to comment.