aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-11-20 15:15:13 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-20 15:15:13 +0100
commit70584b42aaa75c2fe9adda5cf6c37ab63adcccb3 (patch)
tree975086a7f2e174b848f21740dac54b92c8065028
parent0a6f4568b5e4f6291cc19cbea929ed1ebeca3a54 (diff)
downloadwallabag-70584b42aaa75c2fe9adda5cf6c37ab63adcccb3.tar.gz
wallabag-70584b42aaa75c2fe9adda5cf6c37ab63adcccb3.tar.zst
wallabag-70584b42aaa75c2fe9adda5cf6c37ab63adcccb3.zip
Fixing tests
-rw-r--r--src/Wallabag/ApiBundle/Controller/EntryRestController.php2
-rw-r--r--tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php5
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.');