Skip to content
Snippets Groups Projects

Issue #2946882: Auth revoke on profile update

1 unresolved thread

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
80 * @covers ::entityUpdateHandler
81 */
82 public function testEntityUpdateHandlerPasswordChange() {
83 $user = $this->prophesize(UserInterface::class);
84 $user->getRoles()->willReturn(['role1']);
85 $user->pass = (object) ['value' => 'new_password'];
86 $user->isActive()->willReturn(TRUE);
87
88 $user_original = $this->prophesize(UserInterface::class);
89 $user_original->getRoles()->willReturn(['role1']);
90 $user_original->pass = (object) ['value' => 'password'];
91 $user_original->isActive()->willReturn(TRUE);
92 $user->original = $user_original->reveal();
93
94 $this->updateHandler->handleEntityUpdate($user->reveal());
95 $this->expiredCollector->deleteMultipleTokens([])->shouldBeCalled();
  • The Unit test has been copied from the 5.2 MR, the deleteMultipleTokens will be always called due the fact UserUpdateTokenInvalidationEvent is not mocked. I think we should migrate to a KernelTest.

  • Please register or sign in to reply
  • Dieter Holvoet added 16 commits

    added 16 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading