@@ -83,12 +83,12 @@ Describe "Find-MgGraphCommand Command" {
8383 }
8484 It ' Should find command using action with FQNamespace.' {
8585 {
86- $Uri = " /sites/{site-id}/onenote/pages/{onenotePage-id}/microsoft.graph.onenotePatchContent "
86+ $Uri = " /groups/{group-id}/ sites/{site-id}/onenote/pages/{onenotePage-id}/microsoft.graph.copyToSection "
8787 $MgCommand = Find-MgGraphCommand - Uri $Uri - ApiVersion beta
8888 $MgCommand.Method | Should - Be " POST"
8989 $MgCommand.APIVersion | Should - Be " beta"
90- $MgCommand.Command | Should - Be " Update-MgBetaSiteOnenotePageContent "
91- $MgCommand.Uri | Should - Be " /sites/{site-id}/onenote/pages/{onenotePage-id}/onenotePatchContent "
90+ $MgCommand.Command | Should - Be " Copy-MgBetaGroupSiteOnenotePageToSection "
91+ $MgCommand.Uri | Should - Be " /groups/{group-id}/ sites/{site-id}/onenote/pages/{onenotePage-id}/copyToSection "
9292 } | Should -Not - Throw
9393 }
9494 It ' Should find command using action with nested FQNamespace.' {
@@ -103,12 +103,12 @@ Describe "Find-MgGraphCommand Command" {
103103 }
104104 It ' Should find command using function without FQNamespace.' {
105105 {
106- $Uri = " /deviceManagement/assignmentFilters/getState "
106+ $Uri = " /deviceManagement/getEffectivePermissions "
107107 $MgCommand = Find-MgGraphCommand - Uri $Uri - ApiVersion beta
108108 $MgCommand.Method | Should - Be " GET"
109109 $MgCommand.APIVersion | Should - Be " beta"
110- $MgCommand.Command | Should - Be " Get-MgBetaDeviceManagementAssignmentFilterState "
111- $MgCommand.Uri | Should - Be " /deviceManagement/assignmentFilters/getState "
110+ $MgCommand.Command | Should - Be " Get-MgBetaDeviceManagementEffectivePermission "
111+ $MgCommand.Uri | Should - Be " /deviceManagement/getEffectivePermissions "
112112 } | Should -Not - Throw
113113 }
114114 It ' Should support pipeline input' {
@@ -189,12 +189,12 @@ Describe "Find-MgGraphCommand Command" {
189189 Context " FindByCommand" {
190190 It ' Should find command using all parameters' {
191191 {
192- $MgCommand = Find-MgGraphCommand - Command " Invoke-MgBetaAcceptGroupCalendarEvent " - ApiVersion beta
192+ $MgCommand = Find-MgGraphCommand - Command " Invoke-MgBetaAcceptGroupEvent " - ApiVersion beta
193193 $MgCommand | Should - HaveCount 1
194194 $MgCommand.Method | Should - Be " POST"
195195 $MgCommand.APIVersion | Should - Be " beta"
196- $MgCommand.Command | Should - Be " Invoke-MgBetaAcceptGroupCalendarEvent "
197- $MgCommand.URI | Should - Be " /groups/{group-id}/calendar/ events/{event-id}/accept"
196+ $MgCommand.Command | Should - Be " Invoke-MgBetaAcceptGroupEvent "
197+ $MgCommand.URI | Should - Be " /groups/{group-id}/events/{event-id}/accept"
198198 } | Should -Not - Throw
199199 }
200200 It ' Should find command using regex' {
0 commit comments