Skip to content

Commit 196b96d

Browse files
committed
IsContainerTest
1 parent 9f8a8b4 commit 196b96d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
namespace Ibexa\Tests\Bundle\Rest\Functional\SearchView\Criterion;
10+
11+
use Ibexa\Tests\Bundle\Rest\Functional\SearchView\SearchCriterionTestCase;
12+
13+
final class IsContainerTest extends SearchCriterionTestCase
14+
{
15+
public function getCriteriaPayloads(): iterable
16+
{
17+
return [
18+
'is container' => [
19+
'json',
20+
$this->buildJsonCriterionQuery('"IsContainer": true'),
21+
11,
22+
],
23+
'is not container' => [
24+
'json',
25+
$this->buildJsonCriterionQuery('"IsContainer": false'),
26+
2,
27+
],
28+
];
29+
}
30+
}

0 commit comments

Comments
 (0)