diff options
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 8f0effee..65a3ccd9 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -712,28 +712,28 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
712 | $this->assertSame($previousLanguage, $content['language'], 'Ensure language has not moved'); | 712 | $this->assertSame($previousLanguage, $content['language'], 'Ensure language has not moved'); |
713 | $this->assertSame($previousTitle, $content['title'], 'Ensure title has not moved'); | 713 | $this->assertSame($previousTitle, $content['title'], 'Ensure title has not moved'); |
714 | } | 714 | } |
715 | 715 | ||
716 | public function testPatchEntryNullOriginUrl() | 716 | public function testPatchEntryNullOriginUrl() |
717 | { | 717 | { |
718 | $entry = $this->client->getContainer() | 718 | $entry = $this->client->getContainer() |
719 | ->get('doctrine.orm.entity_manager') | 719 | ->get('doctrine.orm.entity_manager') |
720 | ->getRepository('WallabagCoreBundle:Entry') | 720 | ->getRepository('WallabagCoreBundle:Entry') |
721 | ->findOneByUser(1); | 721 | ->findOneByUser(1); |
722 | 722 | ||
723 | if (!$entry) { | 723 | if (!$entry) { |
724 | $this->markTestSkipped('No content found in db.'); | 724 | $this->markTestSkipped('No content found in db.'); |
725 | } | 725 | } |
726 | 726 | ||
727 | $this->client->request('PATCH', '/api/entries/' . $entry->getId() . '.json', [ | 727 | $this->client->request('PATCH', '/api/entries/' . $entry->getId() . '.json', [ |
728 | 'origin_url' => null, | 728 | 'origin_url' => null, |
729 | ]); | 729 | ]); |
730 | 730 | ||
731 | $this->assertSame(200, $this->client->getResponse()->getStatusCode()); | 731 | $this->assertSame(200, $this->client->getResponse()->getStatusCode()); |
732 | 732 | ||
733 | $content = json_decode($this->client->getResponse()->getContent(), true); | 733 | $content = json_decode($this->client->getResponse()->getContent(), true); |
734 | 734 | ||
735 | $this->assertNull($content['origin_url']); | 735 | $this->assertNull($content['origin_url']); |
736 | } | 736 | } |
737 | 737 | ||
738 | public function testGetTagsEntry() | 738 | public function testGetTagsEntry() |
739 | { | 739 | { |