mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 02:51:04 +00:00
Fix tests
This commit is contained in:
parent
5af3c573bd
commit
f6ca547fc9
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ abstract class WallabagCoreTestCase extends WebTestCase
|
|||
$firewallName = $container->getParameter('fos_user.firewall_name');
|
||||
|
||||
$user = $userManager->findUserBy(['username' => $username]);
|
||||
|
||||
if (null === $user) {
|
||||
throw new \Exception('Unable to find user "' . $username . '". Does fixtures were loaded?');
|
||||
}
|
||||
|
||||
$loginManager->logInUser($firewallName, $user);
|
||||
|
||||
$session->set('_security_' . $firewallName, serialize($container->get('security.token_storage')->getToken()));
|
||||
|
|
Loading…
Reference in a new issue