Skip to content
Snippets Groups Projects

3476166: Deprecate RoleStorage::isPermissionInRoles()

Closes #3476166

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Samit Khulve added 1 commit

    added 1 commit

    • c7892adc - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • 90a0a667 - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • c8e32dc7 - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • 525856bf - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • 4 4
    5 5 use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
    6 6
    7 @trigger_error('The Drupal\user\RoleStorageInterface is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. See https://www.drupal.org/node/3477235', E_USER_DEPRECATED);
  • 12 * @group user
    13 */
    14 class PermissionInRoleTest extends KernelTestBase {
    15
    16 /**
    17 * {@inheritdoc}
    18 */
    19 protected static $modules = ['user'];
    20
    21 /**
    22 * Tests the deprecation of \Drupal\user\RoleStorage::isPermissionInRoles()
    23 *
    24 * @group legacy
    25 */
    26 public function testDeprecatedTestIsPermissionInRoles(): void {
    27 \Drupal::service('entity_type.manager')->getStorage('user_role')->isPermissionInRoles('access content', ['authenticated']);
  • 82 82 parent::setUp();
    83 83
    84 84 $this->role = $this->createMock('Drupal\user\RoleInterface');
    85 $this->roleStorage = $this->createMock('\Drupal\user\RoleStorageInterface');
    85 $this->roleStorage = $this->createMock('\Drupal\Core\Config\Entity\ConfigEntityStorageInterface');
  • Samit Khulve added 1 commit

    added 1 commit

    • 209cf17e - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • a93d2c8b - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • 86a9c78a - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • bb2211d1 - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • f7f3305f - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • 75be2a36 - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • Samit Khulve added 1 commit

    added 1 commit

    • 3aaae82b - 3476166: Deprecate RoleStorage::isPermissionInRoles()

    Compare with previous version

  • dimitriskr added 278 commits

    added 278 commits

    Compare with previous version

  • dimitriskr added 1 commit

    added 1 commit

    • 28291d82 - move deprecation to the whole class and interface

    Compare with previous version

  • dimitriskr added 1 commit

    added 1 commit

    • 5a3f1ad4 - replace deprecated classes/interfaces with their parent ones

    Compare with previous version

  • dimitriskr added 1 commit

    added 1 commit

    • c1f401df - replace more deprecated classes/interfaces with their parent ones

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading