diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-05-30 15:26:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-30 15:26:11 +0200 |
commit | 2150576d86709968faec3ed7b8cdc576c0200ae2 (patch) | |
tree | 105724e36303bd75755b19b8bc385bea800cae1c /tests/Wallabag/ApiBundle/WallabagApiTestCase.php | |
parent | d181bd728565454ec53d960f321ed0a4c3bf26c8 (diff) | |
parent | fe6461e4aaff5aa2fd846492e3abd9ea38c07a5b (diff) | |
download | wallabag-2150576d86709968faec3ed7b8cdc576c0200ae2.tar.gz wallabag-2150576d86709968faec3ed7b8cdc576c0200ae2.tar.zst wallabag-2150576d86709968faec3ed7b8cdc576c0200ae2.zip |
Merge pull request #3065 from wallabag/api-creation-endpoint
Register through API
Diffstat (limited to 'tests/Wallabag/ApiBundle/WallabagApiTestCase.php')
-rw-r--r-- | tests/Wallabag/ApiBundle/WallabagApiTestCase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php index cf9b3347..a67655c8 100644 --- a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php +++ b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php | |||
@@ -37,7 +37,7 @@ abstract class WallabagApiTestCase extends WebTestCase | |||
37 | $firewallName = $container->getParameter('fos_user.firewall_name'); | 37 | $firewallName = $container->getParameter('fos_user.firewall_name'); |
38 | 38 | ||
39 | $this->user = $userManager->findUserBy(['username' => 'admin']); | 39 | $this->user = $userManager->findUserBy(['username' => 'admin']); |
40 | $loginManager->loginUser($firewallName, $this->user); | 40 | $loginManager->logInUser($firewallName, $this->user); |
41 | 41 | ||
42 | // save the login token into the session and put it in a cookie | 42 | // save the login token into the session and put it in a cookie |
43 | $container->get('session')->set('_security_'.$firewallName, serialize($container->get('security.token_storage')->getToken())); | 43 | $container->get('session')->set('_security_'.$firewallName, serialize($container->get('security.token_storage')->getToken())); |