public function testImportChromeWithRedisEnabled()
{
+ $this->checkRedis();
$this->logInAs('admin');
$client = $this->getClient();
$client->getContainer()->get('craue_config')->set('import_with_redis', 1);
$this->getLoggedInUserId()
);
- $this->assertEmpty($content->getMimetype());
- $this->assertNotEmpty($content->getPreviewPicture());
- $this->assertNotEmpty($content->getLanguage());
+ $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->assertEquals(0, count($content->getTags()));
+
+ $createdAt = $content->getCreatedAt();
+ $this->assertEquals('2011', $createdAt->format('Y'));
+ $this->assertEquals('07', $createdAt->format('m'));
}
public function testImportWallabagWithEmptyFile()