Skip to content

Commit

Permalink
[Tests] Upgraded Symfony User mocking to Symfony 6
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Dec 30, 2024
1 parent 0bb65c8 commit 87f10b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/REST/BaseAdminUiRestWebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function mockSymfonyUser(User $ibexaUser): UserInterface
{
$symfonyUser = $this->createMock(UserInterface::class);
$symfonyUser->method('getRoles')->willReturn(['ROLE_USER']);
$symfonyUser->method('getUsername')->willReturn($ibexaUser->login);
$symfonyUser->method('getUserIdentifier')->willReturn($ibexaUser->login);

return new UserWrapped($symfonyUser, $ibexaUser);
}
Expand Down

0 comments on commit 87f10b7

Please sign in to comment.