diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-31 10:38:15 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-31 10:38:15 +0200 |
commit | bad7df8c0048285e7a6bd539e5e501ce6675d663 (patch) | |
tree | 384b35ecebf7f1126e346edad79cb5ea0879ddbd /tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php | |
parent | 7a8ed3cee1003aae56400e18509980e2695ea622 (diff) | |
download | wallabag-bad7df8c0048285e7a6bd539e5e501ce6675d663.tar.gz wallabag-bad7df8c0048285e7a6bd539e5e501ce6675d663.tar.zst wallabag-bad7df8c0048285e7a6bd539e5e501ce6675d663.zip |
CS & improve tags assertions
Diffstat (limited to 'tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php b/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php index 96b32484..e2b6e7b6 100644 --- a/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php | |||
@@ -121,7 +121,13 @@ class PinboardControllerTest extends WallabagCoreTestCase | |||
121 | $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://ma.ttias.be is ok'); | 121 | $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://ma.ttias.be is ok'); |
122 | $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://ma.ttias.be is ok'); | 122 | $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://ma.ttias.be is ok'); |
123 | $this->assertNotEmpty($content->getLanguage(), 'Language for https://ma.ttias.be is ok'); | 123 | $this->assertNotEmpty($content->getLanguage(), 'Language for https://ma.ttias.be is ok'); |
124 | $this->assertEquals(3, count($content->getTags())); | 124 | |
125 | $tags = $content->getTags(); | ||
126 | $this->assertContains('foot', $tags, 'It includes the "foot" tag'); | ||
127 | $this->assertContains('varnish', $tags, 'It includes the "varnish" tag'); | ||
128 | $this->assertContains('PHP', $tags, 'It includes the "PHP" tag'); | ||
129 | $this->assertEquals(3, count($tags)); | ||
130 | |||
125 | $this->assertInstanceOf(\DateTime::class, $content->getCreatedAt()); | 131 | $this->assertInstanceOf(\DateTime::class, $content->getCreatedAt()); |
126 | $this->assertEquals('2016-10-26', $content->getCreatedAt()->format('Y-m-d')); | 132 | $this->assertEquals('2016-10-26', $content->getCreatedAt()->format('Y-m-d')); |
127 | } | 133 | } |