Tests/Public/Licensing/Test-AzureAdLicenseContainsServicePlan.tests.ps1
# Module: TeamsFunctions # Function: Test # Author: David Eberhardt # Updated: 18-JUL-2021 InModuleScope TeamsFunctions { BeforeAll { # } Describe -Tags ('Unit', 'Acceptance') "Function 'Test-AzureAdLicenseContainsServicePlan'" { It 'Should be false' { #Mock Set-CsUser { return $false } Test-AzureAdLicenseContainsServicePlan -License Office365E3 -ServicePlan MCOEV | Should -BeFalse Test-AzureAdLicenseContainsServicePlan -License Office365E5 -ServicePlan MCOEV_VIRTUALUSER | Should -BeFalse } It 'Should be true' { #Mock Set-CsUser { return $true } Test-AzureAdLicenseContainsServicePlan -License Office365E5 -ServicePlan MCOEV | Should -BeTrue Test-AzureAdLicenseContainsServicePlan -License PhoneSystemVirtualUser -ServicePlan MCOEV_VIRTUALUSER | Should -BeTrue } } } |