aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 09:43:14 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-13 09:43:14 +0200
commitf2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch)
treef559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php
parenta417b869237763ee115982d6367a82aa6174d74e (diff)
parent86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff)
downloadwallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.gz
wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.zst
wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.zip
Merge pull request #1916 from wallabag/cleanup
Convert array + phpDoc
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php')
-rw-r--r--src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php6
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