]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixing tests
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 20 Nov 2016 14:15:13 +0000 (15:15 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 20 Nov 2016 14:15:13 +0000 (15:15 +0100)
src/Wallabag/ApiBundle/Controller/EntryRestController.php
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php

index 3303d47b631d61b7b2329a5935cc91a6a201a019..7b7d94bfaa22625a91b760bae66621f39a236251 100644 (file)
@@ -287,7 +287,7 @@ class EntryRestController extends WallabagRestController
 
     /**
      * Reload an entry.
-     * An empty response with HTTP Status 304 will be send if we weren't able to update the content (because it hasn't changed or we got an error)
+     * An empty response with HTTP Status 304 will be send if we weren't able to update the content (because it hasn't changed or we got an error).
      *
      * @ApiDoc(
      *      requirements={
index 3c8b7980001175f5c434519ea70b8928a955a035..409a82914680f8618139ced4632491fd61f34dc2 100644 (file)
@@ -681,10 +681,9 @@ class EntryRestControllerTest extends WallabagApiTestCase
 
     public function testReloadEntryErrorWhileFetching()
     {
-        $entry = $this->client->getContainer()
-            ->get('doctrine.orm.entity_manager')
+        $entry = $this->client->getContainer()->get('doctrine.orm.entity_manager')
             ->getRepository('WallabagCoreBundle:Entry')
-            ->findOneBy(['user' => 1, 'isArchived' => false]);
+            ->findByUrlAndUserId('http://0.0.0.0/entry4', 1);
 
         if (!$entry) {
             $this->markTestSkipped('No content found in db.');