Loading core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php +0 −4 Original line number Diff line number Diff line Loading @@ -74,10 +74,6 @@ protected function getNormalizedPostEntity() { * {@inheritdoc} */ protected function getExpectedUnauthorizedAccessMessage($method) { if ($this->config('rest.settings')->get('bc_entity_resource_permissions')) { return parent::getExpectedUnauthorizedAccessMessage($method); } switch ($method) { case 'GET': return "The 'view config_test' permission is required."; Loading core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php +0 −12 Original line number Diff line number Diff line Loading @@ -59,18 +59,6 @@ protected function setUpAuthorization($method) { } } /** * {@inheritdoc} */ protected function grantPermissionsToTestedRole(array $permissions) { // testPatch() and testDelete() test the 'bc_entity_resource_permissions' BC // layer; also call makeCurrentUserFileOwner() then. if ($permissions === ['restful patch entity:file'] || $permissions === ['restful delete entity:file']) { $this->makeCurrentUserFileOwner(); } parent::grantPermissionsToTestedRole($permissions); } /** * Makes the current user the file owner. */ Loading core/modules/shortcut/tests/src/Functional/Rest/ShortcutSetResourceTestBase.php +0 −4 Original line number Diff line number Diff line Loading @@ -89,10 +89,6 @@ protected function getNormalizedPostEntity() { * {@inheritdoc} */ protected function getExpectedUnauthorizedAccessMessage($method) { if ($this->config('rest.settings')->get('bc_entity_resource_permissions')) { return parent::getExpectedUnauthorizedAccessMessage($method); } switch ($method) { case 'GET': return "The 'access shortcuts' permission is required."; Loading core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php +0 −4 Original line number Diff line number Diff line Loading @@ -136,10 +136,6 @@ protected function getNormalizedPostEntity() { * {@inheritdoc} */ protected function getExpectedUnauthorizedAccessMessage($method) { if ($this->config('rest.settings')->get('bc_entity_resource_permissions')) { return parent::getExpectedUnauthorizedAccessMessage($method); } return "The 'administer entity_test content' permission is required."; } Loading Loading
core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php +0 −4 Original line number Diff line number Diff line Loading @@ -74,10 +74,6 @@ protected function getNormalizedPostEntity() { * {@inheritdoc} */ protected function getExpectedUnauthorizedAccessMessage($method) { if ($this->config('rest.settings')->get('bc_entity_resource_permissions')) { return parent::getExpectedUnauthorizedAccessMessage($method); } switch ($method) { case 'GET': return "The 'view config_test' permission is required."; Loading
core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php +0 −12 Original line number Diff line number Diff line Loading @@ -59,18 +59,6 @@ protected function setUpAuthorization($method) { } } /** * {@inheritdoc} */ protected function grantPermissionsToTestedRole(array $permissions) { // testPatch() and testDelete() test the 'bc_entity_resource_permissions' BC // layer; also call makeCurrentUserFileOwner() then. if ($permissions === ['restful patch entity:file'] || $permissions === ['restful delete entity:file']) { $this->makeCurrentUserFileOwner(); } parent::grantPermissionsToTestedRole($permissions); } /** * Makes the current user the file owner. */ Loading
core/modules/shortcut/tests/src/Functional/Rest/ShortcutSetResourceTestBase.php +0 −4 Original line number Diff line number Diff line Loading @@ -89,10 +89,6 @@ protected function getNormalizedPostEntity() { * {@inheritdoc} */ protected function getExpectedUnauthorizedAccessMessage($method) { if ($this->config('rest.settings')->get('bc_entity_resource_permissions')) { return parent::getExpectedUnauthorizedAccessMessage($method); } switch ($method) { case 'GET': return "The 'access shortcuts' permission is required."; Loading
core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php +0 −4 Original line number Diff line number Diff line Loading @@ -136,10 +136,6 @@ protected function getNormalizedPostEntity() { * {@inheritdoc} */ protected function getExpectedUnauthorizedAccessMessage($method) { if ($this->config('rest.settings')->get('bc_entity_resource_permissions')) { return parent::getExpectedUnauthorizedAccessMessage($method); } return "The 'administer entity_test content' permission is required."; } Loading