- $this->assertNotEmpty($content->getMimetype());
- $this->assertNotEmpty($content->getPreviewPicture());
- $this->assertEmpty($content->getLanguage());
+ $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
+ $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://www.lemonde.fr is ok');
+ $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://www.lemonde.fr is ok');
+ $this->assertNotEmpty($content->getLanguage(), 'Language for https://www.lemonde.fr is ok');
+
+ $createdAt = $content->getCreatedAt();
+ $this->assertSame('2013', $createdAt->format('Y'));
+ $this->assertSame('12', $createdAt->format('m'));