diff options
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 1ecd03fb..0968cfaf 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -344,6 +344,10 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
344 | 'url' => 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', | 344 | 'url' => 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', |
345 | 'tags' => 'google', | 345 | 'tags' => 'google', |
346 | 'title' => 'New title for my article', | 346 | 'title' => 'New title for my article', |
347 | 'content' => 'my content', | ||
348 | 'language' => 'de_DE', | ||
349 | 'published_at' => '2016-09-08T11:55:58+0200', | ||
350 | 'authors' => 'bob,helen', | ||
347 | ]); | 351 | ]); |
348 | 352 | ||
349 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); | 353 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
@@ -357,6 +361,12 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
357 | $this->assertEquals('New title for my article', $content['title']); | 361 | $this->assertEquals('New title for my article', $content['title']); |
358 | $this->assertEquals(1, $content['user_id']); | 362 | $this->assertEquals(1, $content['user_id']); |
359 | $this->assertCount(2, $content['tags']); | 363 | $this->assertCount(2, $content['tags']); |
364 | $this->assertSame('my content', $content['content']); | ||
365 | $this->assertSame('de_DE', $content['language']); | ||
366 | $this->assertSame('2016-09-08T11:55:58+0200', $content['published_at']); | ||
367 | $this->assertCount(2, $content['published_by']); | ||
368 | $this->assertContains('bob', $content['published_by']); | ||
369 | $this->assertContains('helen', $content['published_by']); | ||
360 | } | 370 | } |
361 | 371 | ||
362 | public function testPostSameEntry() | 372 | public function testPostSameEntry() |