-
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
2 changed files
with
9 additions
and
9 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
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 |
---|---|---|
|
@@ -89,7 +89,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
self::MODULE_CONTENT, | ||
self::FUNCTION_READ, | ||
['contentId' => 41], | ||
'{"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]"}]}', | ||
'{"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]"}],"noAccess":[{"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' => [ | ||
|
@@ -100,7 +100,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
'contentId' => 41, | ||
'locationId' => 51, | ||
], | ||
'{"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]"}]}', | ||
'{"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]"}],"noAccess":[{"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*' => [ | ||
|
@@ -111,7 +111,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
'contentId' => 41, | ||
'phrase' => 'undef*', | ||
], | ||
'{"access":[],"no_access":[]}', | ||
'{"access":[],"noAccess":[]}', | ||
]; | ||
|
||
yield 'Check content-edit for content item 2 and phrase=jo' => [ | ||
|
@@ -122,7 +122,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
'contentId' => 41, | ||
'phrase' => 'jo*', | ||
], | ||
'{"access":[{"id":"__FIXED_ID__","name":"John Doe","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[]}', | ||
'{"access":[{"id":"__FIXED_ID__","name":"John Doe","email":"[email protected]"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"noAccess":[]}', | ||
]; | ||
|
||
yield 'Check content-edit for content item 41 and phrase=bar*' => [ | ||
|
@@ -133,7 +133,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
'contentId' => 41, | ||
'phrase' => 'bar*', | ||
], | ||
'{"access":[{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[]}', | ||
'{"access":[{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"noAccess":[]}', | ||
]; | ||
|
||
yield 'Check content-edit for content item 41 and location 43 and [email protected]' => [ | ||
|
@@ -145,7 +145,7 @@ public function provideDataForTestGetUsersWithPermissionsEndpoint(): iterable | |
'contentId' => 41, | ||
'locationId' => self::MEDIA_LOCATION_ID, | ||
], | ||
'{"access":[{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"no_access":[]}', | ||
'{"access":[{"id":"__FIXED_ID__","name":"Josh Bar","email":"[email protected]"}],"noAccess":[]}', | ||
]; | ||
} | ||
|
||
|