diff --git a/Tests/Functional/Entity/User.php b/Tests/Functional/Entity/User.php
index <HASH>..<HASH> 100644
--- a/Tests/Functional/Entity/User.php
+++ b/Tests/Functional/Entity/User.php
@@ -72,11 +72,16 @@ class User implements UserInterface
         $this->email = $email;
     }
 
+    public function getUserIdentifier(): string
+    {
+        return $this->getUsername();
+    }
+
     public function eraseCredentials()
     {
     }
 
-    public function getRoles()
+    public function getRoles(): array
     {
         return [];
     }
Update User class to support UserInterface