Skip to content

Commit

Permalink
change assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
narcoticfresh committed May 7, 2024
1 parent de465c1 commit 9a6c363
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions tests/Rest/Controller/RestrictionListenerUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,8 @@ public function testOnPreAggregate($restrictionMode, $persistRestrictions, $rest
$expectedPipeline = [
[
'$match' => [
'$and' => [
[
'clientId' => [
'$in' => [1, null]
]
]
'clientId' => [
'$in' => [1, null]
]
],
],
Expand All @@ -235,13 +231,9 @@ public function testOnPreAggregate($restrictionMode, $persistRestrictions, $rest
$expectedPipeline = [
[
'$match' => [
'$and' => [
[
'$or' => [
['clientId' => null],
['clientId' => ['$lte' => 1]],
]
]
'$or' => [
['clientId' => ['$eq' => null]],
['clientId' => ['$lte' => 1]],
]
],
],
Expand Down

0 comments on commit 9a6c363

Please sign in to comment.