aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-04-06 09:36:20 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-04-09 15:24:51 +0200
commit7b0b3622ab2dd909028481b294c91f88a5682671 (patch)
treecf9a9b432a8f123b8cf7400e387ba3113e8c8cc4 /tests/Wallabag
parent5e9009ce86a366001616fad5b28cb59dc20ee4df (diff)
downloadwallabag-7b0b3622ab2dd909028481b294c91f88a5682671.tar.gz
wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.tar.zst
wallabag-7b0b3622ab2dd909028481b294c91f88a5682671.zip
Added author of article
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index d4ebdf3d..5af7f7e1 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -135,10 +135,13 @@ class EntryControllerTest extends WallabagCoreTestCase
135 ->getRepository('WallabagCoreBundle:Entry') 135 ->getRepository('WallabagCoreBundle:Entry')
136 ->findByUrlAndUserId($this->url, $this->getLoggedInUserId()); 136 ->findByUrlAndUserId($this->url, $this->getLoggedInUserId());
137 137
138 $author = $content->getPublishedBy();
139
138 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); 140 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
139 $this->assertEquals($this->url, $content->getUrl()); 141 $this->assertEquals($this->url, $content->getUrl());
140 $this->assertContains('Google', $content->getTitle()); 142 $this->assertContains('Google', $content->getTitle());
141 $this->assertEquals('2015-03-28 15:37:39', $content->getPublishedAt()); 143 $this->assertEquals('2015-03-28 15:37:39', $content->getPublishedAt()->format('Y-m-d H:i:s'));
144 $this->assertEquals('Morgane Tual', $author[0]);
142 } 145 }
143 146
144 public function testPostNewOkUrlExist() 147 public function testPostNewOkUrlExist()