- $this->assertNotEmpty($content->getPreviewPicture());
- $this->assertNotEmpty($content->getLanguage());
- $this->assertEquals(0, count($content->getTags()));
+ $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
+ $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for http://www.usinenouvelle.com is ok');
+ $this->assertNotEmpty($content->getLanguage(), 'Language for http://www.usinenouvelle.com is ok');
+ $this->assertSame(1, \count($content->getTags()));
+
+ $createdAt = $content->getCreatedAt();
+ $this->assertSame('2011', $createdAt->format('Y'));
+ $this->assertSame('07', $createdAt->format('m'));