'impersonated',
['IS_IMPERSONATOR'
], VoterInterface::ACCESS_GRANTED
],
];
} /**
* @dataProvider provideAttributes
*/
public function testSupportsAttribute(string
$attribute, bool
$expected) { $voter =
new AuthenticatedVoter(new AuthenticationTrustResolver());
$this->
assertSame($expected,
$voter->
supportsAttribute($attribute));
} public static function provideAttributes() { yield [AuthenticatedVoter::IS_AUTHENTICATED_FULLY, true
];
yield [AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED, true
];
yield [AuthenticatedVoter::IS_AUTHENTICATED, true
];
yield [AuthenticatedVoter::IS_IMPERSONATOR, true
];
yield [AuthenticatedVoter::IS_REMEMBERED, true
];
yield [AuthenticatedVoter::PUBLIC_ACCESS, true
];