-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ public function testGetUsersWithPermissionsEndpoint( | |
} | ||
|
||
$fixedResponse = $this->doReplaceResponse($content); | ||
|
||
self::assertSame($expectedResponse, $fixedResponse); | ||
} | ||
|
||
|
@@ -88,7 +89,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
self::MODULE_CONTENT, | ||
self::FUNCTION_READ, | ||
['contentId' => 41], | ||
'{"access":[{"id":"__FIXED_ID__","name":"John Doe","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[{"id":"__FIXED_ID__","name":"Guest Guest","email":"[email protected]"}]}', | ||
'{"access":[{"id":"__FIXED_ID__","name":"Administrator User","email":"[email protected]"},{"id":"__FIXED_ID__","name":"John Doe","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[{"id":"__FIXED_ID__","name":"Anonymous User","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Guest Guest","email":"[email protected]"}]}', | ||
]; | ||
|
||
yield 'Check content-read for content item 41 and location 51' => [ | ||
|
@@ -99,18 +100,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
'contentId' => 41, | ||
'locationId' => 51, | ||
], | ||
'{"access":[{"id":"__FIXED_ID__","name":"John Doe","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[{"id":"__FIXED_ID__","name":"Guest Guest","email":"[email protected]"}]}', | ||
]; | ||
|
||
yield 'Check content-read for content item 41 and phrase=adm' => [ | ||
self::MEDIA_CONTENT_ITEM_ID, | ||
self::MODULE_CONTENT, | ||
self::FUNCTION_READ, | ||
[ | ||
'contentId' => 41, | ||
'phrase' => 'Adm*', | ||
], | ||
'{"access":[],"no_access":[]}', | ||
'{"access":[{"id":"__FIXED_ID__","name":"Administrator User","email":"[email protected]"},{"id":"__FIXED_ID__","name":"John Doe","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[{"id":"__FIXED_ID__","name":"Anonymous User","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Guest Guest","email":"[email protected]"}]}', | ||
]; | ||
|
||
yield 'Check content-read for phrase=undef*' => [ | ||
|