mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Added author of article
This commit is contained in:
parent
5e9009ce86
commit
7b0b3622ab
20 changed files with 79 additions and 6 deletions
|
@ -135,10 +135,13 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->findByUrlAndUserId($this->url, $this->getLoggedInUserId());
|
||||
|
||||
$author = $content->getPublishedBy();
|
||||
|
||||
$this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
|
||||
$this->assertEquals($this->url, $content->getUrl());
|
||||
$this->assertContains('Google', $content->getTitle());
|
||||
$this->assertEquals('2015-03-28 15:37:39', $content->getPublishedAt());
|
||||
$this->assertEquals('2015-03-28 15:37:39', $content->getPublishedAt()->format('Y-m-d H:i:s'));
|
||||
$this->assertEquals('Morgane Tual', $author[0]);
|
||||
}
|
||||
|
||||
public function testPostNewOkUrlExist()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue