'path' => 'field3',
'value' => 'value3',
'memberOf' => 'nested-and-group',
],
],
];
$resource_type =
new ResourceType('foo', 'bar', NULL
);
$filter = Filter::
createFromQueryParameter($parameter,
$resource_type,
$this->
getFieldResolverMock($resource_type));
$root =
$filter->
root();
// Make sure the implicit root group was added.
$this->
assertEquals('AND',
$root->
conjunction());
// Ensure the or-group and the and-group were added correctly.
$members =
$root->
members();
// Ensure the OR group was added.
$or_group =
$members[0
];
$this->
assertEquals('OR',
$or_group->
conjunction());
$or_group_members =
$or_group->
members();
// Make sure the nested OR group was added with the right conditions.
$nested_or_group =
$or_group_members[0
];