diff --git a/tests/integration/REST/BaseAdminUiRestWebTestCase.php b/tests/integration/REST/BaseAdminUiRestWebTestCase.php index 9fe370236a..c6b85e9c47 100644 --- a/tests/integration/REST/BaseAdminUiRestWebTestCase.php +++ b/tests/integration/REST/BaseAdminUiRestWebTestCase.php @@ -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); }