Compare commits
No commits in common. "af15b957a10804a8f48a207b9d76e394395f6c0a" and "2e6e772ef944c493462e60a8a3ab5358203ae09d" have entirely different histories.
af15b957a1
...
2e6e772ef9
@ -319,7 +319,7 @@
|
||||
],
|
||||
'mobileApp' => [
|
||||
'resource' => 'deviceAppManagement/mobileApps',
|
||||
'allowed_select' => ['id', 'displayName', 'publisher', 'description', '@odata.type', 'createdDateTime', 'lastModifiedDateTime', 'roleScopeTagIds'],
|
||||
'allowed_select' => ['id', 'displayName', 'publisher', 'description', '@odata.type', 'createdDateTime', 'lastModifiedDateTime'],
|
||||
'allowed_expand' => [],
|
||||
'type_family' => [
|
||||
'#microsoft.graph.mobileApp',
|
||||
|
||||
@ -106,7 +106,6 @@
|
||||
$contract = $this->registry->get('mobileApp');
|
||||
|
||||
expect($contract)->not->toBeEmpty();
|
||||
expect($contract['allowed_select'] ?? [])->toContain('roleScopeTagIds');
|
||||
expect($contract['assignments_list_path'] ?? null)
|
||||
->toBe('/deviceAppManagement/mobileApps/{id}/assignments');
|
||||
expect($contract['assignments_create_path'] ?? null)
|
||||
|
||||
@ -34,7 +34,6 @@ public function getPolicy(string $policyType, string $policyId, array $options =
|
||||
'@odata.type' => '#microsoft.graph.win32LobApp',
|
||||
'createdDateTime' => '2025-01-01T00:00:00Z',
|
||||
'lastModifiedDateTime' => '2025-01-02T00:00:00Z',
|
||||
'roleScopeTagIds' => ['0', 'tag-1', 'tag-2'],
|
||||
'installCommandLine' => 'setup.exe /quiet',
|
||||
'largeIcon' => ['type' => 'image/png', 'value' => '...'],
|
||||
],
|
||||
@ -156,9 +155,7 @@ public function request(string $method, string $path, array $options = []): Grap
|
||||
'@odata.type',
|
||||
'createdDateTime',
|
||||
'lastModifiedDateTime',
|
||||
'roleScopeTagIds',
|
||||
]);
|
||||
expect($result['payload']['roleScopeTagIds'])->toBe(['0', 'tag-1', 'tag-2']);
|
||||
expect($result['payload'])->not->toHaveKey('installCommandLine');
|
||||
expect($result['payload'])->not->toHaveKey('largeIcon');
|
||||
expect($client->requests[0][0])->toBe('getPolicy');
|
||||
@ -166,6 +163,5 @@ public function request(string $method, string $path, array $options = []): Grap
|
||||
expect($client->requests[0][2])->toBe('app-123');
|
||||
expect($client->requests[0][3]['select'] ?? null)->toBeArray();
|
||||
expect($client->requests[0][3]['select'])->toContain('displayName');
|
||||
expect($client->requests[0][3]['select'])->toContain('roleScopeTagIds');
|
||||
expect($client->requests[0][3]['select'])->not->toContain('@odata.type');
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user