File tree Expand file tree Collapse file tree
PowerShell/ScubaGear/Testing/Unit/PowerShell/Providers/DefenderProvider Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments