abstract class WallabagApiTestCase extends WebTestCase
{
/**
- * @var Client
+ * @var \Symfony\Bundle\FrameworkBundle\Client
*/
protected $client = null;
}
/**
- * @return Client
+ * @return \Symfony\Bundle\FrameworkBundle\Client
*/
protected function createAuthorizedClient()
{
$firewallName = $container->getParameter('fos_user.firewall_name');
$this->user = $userManager->findUserBy(['username' => 'admin']);
- $loginManager->loginUser($firewallName, $this->user);
+ $loginManager->logInUser($firewallName, $this->user);
// save the login token into the session and put it in a cookie
$container->get('session')->set('_security_'.$firewallName, serialize($container->get('security.token_storage')->getToken()));