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