diff --git a/tests/integration/REST/GetUsersWithPermissionInfoTest.php b/tests/integration/REST/GetUsersWithPermissionInfoTest.php index 546394c7f6..cf535a0409 100644 --- a/tests/integration/REST/GetUsersWithPermissionInfoTest.php +++ b/tests/integration/REST/GetUsersWithPermissionInfoTest.php @@ -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":"john@link.invalid"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"joshua@link.invalid"}],"no_access":[{"id":"__FIXED_ID__","name":"Guest Guest","email":"guest@link.invalid"}]}', + '{"access":[{"id":"__FIXED_ID__","name":"Administrator User","email":"admin@link.invalid"},{"id":"__FIXED_ID__","name":"John Doe","email":"john@link.invalid"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"joshua@link.invalid"}],"no_access":[{"id":"__FIXED_ID__","name":"Anonymous User","email":"anonymous@link.invalid"},{"id":"__FIXED_ID__","name":"Guest Guest","email":"guest@link.invalid"}]}', ]; 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":"john@link.invalid"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"joshua@link.invalid"}],"no_access":[{"id":"__FIXED_ID__","name":"Guest Guest","email":"guest@link.invalid"}]}', - ]; - - 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":"admin@link.invalid"},{"id":"__FIXED_ID__","name":"John Doe","email":"john@link.invalid"},{"id":"__FIXED_ID__","name":"Josh Bar","email":"joshua@link.invalid"}],"no_access":[{"id":"__FIXED_ID__","name":"Anonymous User","email":"anonymous@link.invalid"},{"id":"__FIXED_ID__","name":"Guest Guest","email":"guest@link.invalid"}]}', ]; yield 'Check content-read for phrase=undef*' => [