Skip to content

Commit 93b9f10

Browse files
committed
First pass, mocked Get-FlpCompliancePolicy
1 parent dd122df commit 93b9f10

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

PowerShell/ScubaGear/Testing/Unit/PowerShell/Providers/DefenderProvider/Export-DefenderProvider.Tests.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ InModuleScope -ModuleName ExportDefenderProvider {
137137
} }
138138
function Get-SafeAttachmentPolicy {}
139139
Mock -ModuleName ExportDefenderProvider Get-SafeAttachmentPolicy {}
140-
function Get-AtpPolicyForO365 {throw 'this will be mocked'}
140+
function Get-AtpPolicyForO365 {}
141141
Mock -ModuleName ExportDefenderProvider Get-AtpPolicyForO365 {}
142142
function Get-MgBetaUser {}
143143
Mock -ModuleName ExportDefenderProvider Get-MgBetaUser {}
144+
# Reference ExportDefenderProvider.psm1 line 104 and 120
145+
# for the need to mock Get-DlpCompliancePolicy
146+
function Get-DlpCompliancePolicy {}
147+
Mock -ModuleName ExportDefenderProvider Get-DlpCompliancePolicy {}
144148

145149
function Test-SCuBAValidProviderJson {
146150
param (

0 commit comments

Comments
 (0)