/**
* @Given /^the JSON node "([^"]*)" of the objects of the JSON node "([^"]*)" should contains "([^"]*)"$/
*
* @param string $node
* @param string $collection
* @param string $arrayValue
*/
public function theJSONNodeOfTheObjectsOfTheJSONNodeShouldContains($node, $collection, $arrayValue)
{
$accessor = PropertyAccess::createPropertyAccessor();
$json = $this->getSession()->getPage()->getContent();
$collection = $this->inspector->evaluate(new Json($json), $collection);
foreach ($collection as $element) {
in_array($arrayValue, $accessor->getValue($element, $node));
}
}