diff options
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php')
-rw-r--r-- | src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php b/src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php index 2deff6bf..a9035acc 100644 --- a/src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php +++ b/src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php | |||
@@ -26,10 +26,10 @@ abstract class WallabagAnnotationTestCase extends WebTestCase | |||
26 | { | 26 | { |
27 | $crawler = $this->client->request('GET', '/login'); | 27 | $crawler = $this->client->request('GET', '/login'); |
28 | $form = $crawler->filter('button[type=submit]')->form(); | 28 | $form = $crawler->filter('button[type=submit]')->form(); |
29 | $data = array( | 29 | $data = [ |
30 | '_username' => $username, | 30 | '_username' => $username, |
31 | '_password' => 'mypassword', | 31 | '_password' => 'mypassword', |
32 | ); | 32 | ]; |
33 | 33 | ||
34 | $this->client->submit($form, $data); | 34 | $this->client->submit($form, $data); |
35 | } | 35 | } |
@@ -48,7 +48,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase | |||
48 | $loginManager = $container->get('fos_user.security.login_manager'); | 48 | $loginManager = $container->get('fos_user.security.login_manager'); |
49 | $firewallName = $container->getParameter('fos_user.firewall_name'); | 49 | $firewallName = $container->getParameter('fos_user.firewall_name'); |
50 | 50 | ||
51 | $this->user = $userManager->findUserBy(array('username' => 'admin')); | 51 | $this->user = $userManager->findUserBy(['username' => 'admin']); |
52 | $loginManager->loginUser($firewallName, $this->user); | 52 | $loginManager->loginUser($firewallName, $this->user); |
53 | 53 | ||
54 | // save the login token into the session and put it in a cookie | 54 | // save the login token into the session and put it in a cookie |