Edit file File name : TestUserEntity.php Content :<?php /* * This file is part of the Kimai time-tracking app. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Tests\Security; use Symfony\Component\Security\Core\User\UserInterface; class TestUserEntity implements UserInterface { public function getRoles() { return []; } public function getPassword() { return null; } public function getSalt() { return null; } public function getUsername() { return 'foo'; } public function eraseCredentials() { } } Save