From 4094ea47712efbe58624ff74daeb1f77c9b0edcf Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 12 Apr 2016 11:36:01 +0200 Subject: Convert array + phpDoc Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter --- src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Wallabag/AnnotationBundle/Tests/WallabagAnnotationTestCase.php') 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 { $crawler = $this->client->request('GET', '/login'); $form = $crawler->filter('button[type=submit]')->form(); - $data = array( + $data = [ '_username' => $username, '_password' => 'mypassword', - ); + ]; $this->client->submit($form, $data); } @@ -48,7 +48,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase $loginManager = $container->get('fos_user.security.login_manager'); $firewallName = $container->getParameter('fos_user.firewall_name'); - $this->user = $userManager->findUserBy(array('username' => 'admin')); + $this->user = $userManager->findUserBy(['username' => 'admin']); $loginManager->loginUser($firewallName, $this->user); // save the login token into the session and put it in a cookie -- cgit v1.2.3