$this->validator =
new AclAnnotationValidator($this->connection
);
} /**
* @dataProvider annotationProvider
*
* @param list<string> $privileges
* @param list<string> $acl
*/
public function testValidateRequestAsRouteAttribute(array
$privileges, array
$acl, bool
$pass): void
{ $source =
new AdminApiSource(null, null
);
$source->
setPermissions($privileges);
$context =
new Context( $source,
[],
Defaults::CURRENCY,
[Defaults::LANGUAGE_SYSTEM
] );
$request =
new Request();
$request->attributes->
set(PlatformRequest::ATTRIBUTE_ACL,
$acl);