return $result;
}) ;
$adm->
decide($token,
$attributes,
$object);
$this->
assertEquals($expectedLog,
$adm->
getDecisionLog());
} public static function provideObjectsAndLogs(): \Generator
{ $voter1 =
new DummyVoter();
$voter2 =
new DummyVoter();
yield [ [[ 'attributes' =>
['ATTRIBUTE_1'
],
'object' => null,
'result' => true,
'voterDetails' =>
[ ['voter' =>
$voter1, 'attributes' =>
['ATTRIBUTE_1'
], 'vote' => VoterInterface::ACCESS_GRANTED
],
['voter' =>
$voter2, 'attributes' =>
['ATTRIBUTE_1'
], 'vote' => VoterInterface::ACCESS_GRANTED
],
],
]],