- $this->assertNotEmpty($content->getMimetype());
- $this->assertNotEmpty($content->getPreviewPicture());
- $this->assertNotEmpty($content->getLanguage());
- $this->assertEquals(2, count($content->getTags()));
+ $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
+ $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://www.mediapart.fr is ok');
+ $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://www.mediapart.fr is ok');
+ $this->assertNotEmpty($content->getLanguage(), 'Language for https://www.mediapart.fr is ok');
+
+ $tags = $content->getTags();
+ $this->assertContains('foot', $tags, 'It includes the "foot" tag');
+ $this->assertContains('mediapart', $tags, 'It includes the "mediapart" tag');
+ $this->assertContains('blog', $tags, 'It includes the "blog" tag');
+ $this->assertSame(3, \count($tags));
+