Issue #3152848 by alexpott: Clean up bc_entity_resource_permissions code - it does not exist anymore
parent
308db361b4
commit
20ee128084
|
@ -74,10 +74,6 @@ abstract class ConfigTestResourceTestBase extends EntityResourceTestBase {
|
|||
* {@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.";
|
||||
|
|
|
@ -59,18 +59,6 @@ abstract class FileResourceTestBase extends EntityResourceTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@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.
|
||||
*/
|
||||
|
|
|
@ -89,10 +89,6 @@ abstract class ShortcutSetResourceTestBase extends EntityResourceTestBase {
|
|||
* {@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.";
|
||||
|
|
|
@ -136,10 +136,6 @@ abstract class EntityTestMapFieldResourceTestBase extends EntityResourceTestBase
|
|||
* {@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…
Reference in New Issue