Describe"Get-DbaPermission Unit Tests"-Tags"UnitTests"{InModuleScopedbatools{Context"Validate parameters"{$params=(Get-ChildItemfunction:\Get-DbaPermission).Parametersit"should have a parameter named SqlInstance"{$params.ContainsKey("SqlInstance")|ShouldBe$true}it"should have a parameter named SqlCredential"{$params.ContainsKey("SqlCredential")|ShouldBe$true}it"should have a parameter named EnableException"{$params.ContainsKey("EnableException")|ShouldBe$true}}}}