diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-11 20:10:22 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-31 13:59:45 +0200 |
commit | fb436e8ca0c7468b9698050df0b78447e2d0854f (patch) | |
tree | 211d7079a62507576a58a36b578c65fe74c218d7 /tests | |
parent | e668a8124c46d47add4248963d77f3b29b37b3ce (diff) | |
download | wallabag-fb436e8ca0c7468b9698050df0b78447e2d0854f.tar.gz wallabag-fb436e8ca0c7468b9698050df0b78447e2d0854f.tar.zst wallabag-fb436e8ca0c7468b9698050df0b78447e2d0854f.zip |
Add support for authors
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 1b0c06d2..e9ba4634 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -345,6 +345,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
345 | 'content' => 'my content', | 345 | 'content' => 'my content', |
346 | 'language' => 'de_DE', | 346 | 'language' => 'de_DE', |
347 | 'published_at' => '2016-09-08T11:55:58+0200', | 347 | 'published_at' => '2016-09-08T11:55:58+0200', |
348 | 'authors' => 'bob,helen', | ||
348 | ]); | 349 | ]); |
349 | 350 | ||
350 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); | 351 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
@@ -361,6 +362,9 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
361 | $this->assertSame('my content', $content['content']); | 362 | $this->assertSame('my content', $content['content']); |
362 | $this->assertSame('de_DE', $content['language']); | 363 | $this->assertSame('de_DE', $content['language']); |
363 | $this->assertSame('2016-09-08T11:55:58+0200', $content['published_at']); | 364 | $this->assertSame('2016-09-08T11:55:58+0200', $content['published_at']); |
365 | $this->assertCount(2, $content['published_by']); | ||
366 | $this->assertContains('bob', $content['published_by']); | ||
367 | $this->assertContains('helen', $content['published_by']); | ||
364 | } | 368 | } |
365 | 369 | ||
366 | public function testPostSameEntry() | 370 | public function testPostSameEntry() |