]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Tests/Controller/SecurityControllerTest.php
Convert array + phpDoc
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tests / Controller / SecurityControllerTest.php
index 5c098cc28aa37fa6ed271b93cd68f9a8c85abfd6..2910fa4f739a27ab1347b577de28ffc518935b8c 100644 (file)
@@ -13,7 +13,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
         $client->followRedirects();
 
         $crawler = $client->request('GET', '/config');
-        $this->assertContains('config.form_rss.description', $crawler->filter('body')->extract(array('_text'))[0]);
+        $this->assertContains('config.form_rss.description', $crawler->filter('body')->extract(['_text'])[0]);
     }
 
     public function testLoginWith2Factor()
@@ -22,6 +22,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
 
         if (!$client->getContainer()->getParameter('twofactor_auth')) {
             $this->markTestSkipped('twofactor_auth is not enabled.');
+
             return;
         }
 
@@ -37,7 +38,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
 
         $this->logInAs('admin');
         $crawler = $client->request('GET', '/config');
-        $this->assertContains('scheb_two_factor.trusted', $crawler->filter('body')->extract(array('_text'))[0]);
+        $this->assertContains('scheb_two_factor.trusted', $crawler->filter('body')->extract(['_text'])[0]);
 
         // restore user
         $user = $em
@@ -54,6 +55,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
 
         if (!$client->getContainer()->getParameter('twofactor_auth')) {
             $this->markTestSkipped('twofactor_auth is not enabled.');
+
             return;
         }