diff options
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/EntryRestController.php | 2 | ||||
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php index 3303d47b..7b7d94bf 100644 --- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php +++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php | |||
@@ -287,7 +287,7 @@ class EntryRestController extends WallabagRestController | |||
287 | 287 | ||
288 | /** | 288 | /** |
289 | * Reload an entry. | 289 | * Reload an entry. |
290 | * 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) | 290 | * 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). |
291 | * | 291 | * |
292 | * @ApiDoc( | 292 | * @ApiDoc( |
293 | * requirements={ | 293 | * requirements={ |
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 3c8b7980..409a8291 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -681,10 +681,9 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
681 | 681 | ||
682 | public function testReloadEntryErrorWhileFetching() | 682 | public function testReloadEntryErrorWhileFetching() |
683 | { | 683 | { |
684 | $entry = $this->client->getContainer() | 684 | $entry = $this->client->getContainer()->get('doctrine.orm.entity_manager') |
685 | ->get('doctrine.orm.entity_manager') | ||
686 | ->getRepository('WallabagCoreBundle:Entry') | 685 | ->getRepository('WallabagCoreBundle:Entry') |
687 | ->findOneBy(['user' => 1, 'isArchived' => false]); | 686 | ->findByUrlAndUserId('http://0.0.0.0/entry4', 1); |
688 | 687 | ||
689 | if (!$entry) { | 688 | if (!$entry) { |
690 | $this->markTestSkipped('No content found in db.'); | 689 | $this->markTestSkipped('No content found in db.'); |