- $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://ma.ttias.be is ok');
+ $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://ma.ttias.be is ok');
+ $this->assertNotEmpty($content->getLanguage(), 'Language for https://ma.ttias.be is ok');
+
+ $tags = $content->getTags();
+ $this->assertContains('foot', $tags, 'It includes the "foot" tag');
+ $this->assertContains('varnish', $tags, 'It includes the "varnish" tag');
+ $this->assertContains('php', $tags, 'It includes the "php" tag');
+ $this->assertSame(3, \count($tags));
+