]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Tests/Controller/RssControllerTest.php
Convert array + phpDoc
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tests / Controller / RssControllerTest.php
index 8f627b4b82cf2d2a93e8b9d804d8b9b6d8eff457..87a01b8e468e6e5513eaa9e26d487c1be1f4b5c1 100644 (file)
@@ -2,9 +2,9 @@
 
 namespace Wallabag\CoreBundle\Tests\Controller;
 
-use Wallabag\CoreBundle\Tests\WallabagTestCase;
+use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
 
-class RssControllerTest extends WallabagTestCase
+class RssControllerTest extends WallabagCoreTestCase
 {
     public function validateDom($xml, $nb = null)
     {
@@ -34,17 +34,17 @@ class RssControllerTest extends WallabagTestCase
 
     public function dataForBadUrl()
     {
-        return array(
-            array(
-                '/admin/YZIOAUZIAO/unread.xml'
-            ),
-            array(
-                '/wallace/YZIOAUZIAO/starred.xml'
-            ),
-            array(
-                '/wallace/YZIOAUZIAO/archives.xml'
-            ),
-        );
+        return [
+            [
+                '/admin/YZIOAUZIAO/unread.xml',
+            ],
+            [
+                '/wallace/YZIOAUZIAO/starred.xml',
+            ],
+            [
+                '/wallace/YZIOAUZIAO/archives.xml',
+            ],
+        ];
     }
 
     /**
@@ -64,7 +64,7 @@ class RssControllerTest extends WallabagTestCase
         $client = $this->getClient();
         $em = $client->getContainer()->get('doctrine.orm.entity_manager');
         $user = $em
-            ->getRepository('WallabagCoreBundle:User')
+            ->getRepository('WallabagUserBundle:User')
             ->findOneByUsername('admin');
 
         $config = $user->getConfig();
@@ -85,7 +85,7 @@ class RssControllerTest extends WallabagTestCase
         $client = $this->getClient();
         $em = $client->getContainer()->get('doctrine.orm.entity_manager');
         $user = $em
-            ->getRepository('WallabagCoreBundle:User')
+            ->getRepository('WallabagUserBundle:User')
             ->findOneByUsername('admin');
 
         $config = $user->getConfig();
@@ -107,7 +107,7 @@ class RssControllerTest extends WallabagTestCase
         $client = $this->getClient();
         $em = $client->getContainer()->get('doctrine.orm.entity_manager');
         $user = $em
-            ->getRepository('WallabagCoreBundle:User')
+            ->getRepository('WallabagUserBundle:User')
             ->findOneByUsername('admin');
 
         $config = $user->getConfig();