use Shopware\Core\System\SystemConfig\Event\SystemConfigChangedHook;
/**
* @internal
*
* @covers \Shopware\Core\System\SystemConfig\Event\SystemConfigChangedHook
*/
class SystemConfigChangedHookTest extends TestCase
{ public function testName(): void
{ static::
assertSame('app.config.changed',
(new SystemConfigChangedHook([],
[]))->
getName());
} /**
* @param array<string> $permissions
*
* @dataProvider getPermissionCases
*/
public static function testPermissions(SystemConfigChangedHook
$hook, array
$permissions, bool
$allowed): void
{ static::
assertSame($allowed,
$hook->
isAllowed('app-id',
new AclPrivilegeCollection($permissions)));
}