aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php4
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()