Tests/Public/VoiceConfig/Enable-TeamsUserForEnterpriseVoice.Tests.ps1
# Module: TeamsFunctions # Function: Test # Author: David Eberhardt # Updated: 11-OCT-2020 InModuleScope TeamsFunctions { BeforeAll { # } Describe -Tags ('Unit', 'Acceptance') "Function 'Enable-TeamsUserForEnterpriseVoice'" { It 'Should be false' { #Mock Set-CsUser { return $false } #Enable-TeamsUserForEnterpriseVoice -Identity Test@domain.com | Should -BeFalse } It 'Should be true' { #Mock Set-CsUser { return $true } #Enable-TeamsUserForEnterpriseVoice -Identity Test@domain.com | Should -BeTrue } } } |