1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Add support for authors

This commit is contained in:
Jeremy Benoist 2017-05-11 20:10:22 +02:00
parent e668a8124c
commit fb436e8ca0
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 9 additions and 1 deletions

View file

@ -345,6 +345,7 @@ class EntryRestControllerTest extends WallabagApiTestCase
'content' => 'my content',
'language' => 'de_DE',
'published_at' => '2016-09-08T11:55:58+0200',
'authors' => 'bob,helen',
]);
$this->assertEquals(200, $this->client->getResponse()->getStatusCode());
@ -361,6 +362,9 @@ class EntryRestControllerTest extends WallabagApiTestCase
$this->assertSame('my content', $content['content']);
$this->assertSame('de_DE', $content['language']);
$this->assertSame('2016-09-08T11:55:58+0200', $content['published_at']);
$this->assertCount(2, $content['published_by']);
$this->assertContains('bob', $content['published_by']);
$this->assertContains('helen', $content['published_by']);
}
public function testPostSameEntry()