Browse Source

Fix tests

Jordi Boggiano 9 years ago
parent
commit
be5d259386
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Packagist/WebBundle/Tests/Controller/WebControllerTest.php

+ 3 - 1
src/Packagist/WebBundle/Tests/Controller/WebControllerTest.php

@@ -264,7 +264,7 @@ class WebControllerTest extends WebTestCase
 
         $this->executeCommand('rm -f ' . $lock);
 
-        $this->initializePackages($container);
+        list($twigPackage, $packagistPackage, $symfonyPackage) = $this->initializePackages($container);
 
         if (!empty($orderBys)) {
             $orderBysQryStrPart = '&' . http_build_query(
@@ -322,6 +322,8 @@ class WebControllerTest extends WebTestCase
         $em->persist($symfonyPackage);
 
         $em->flush();
+
+        return [$twigPackage, $packagistPackage, $symfonyPackage];
     }
 
     /**