Fix bad date format in Browser import

This commit is contained in:
Jeremy Benoist
2016-09-25 15:29:40 +02:00
parent f0fd82d039
commit 27acc6ddb8
5 changed files with 31 additions and 62 deletions

View File

@ -133,6 +133,10 @@ class FirefoxControllerTest extends WallabagCoreTestCase
$this->assertNotEmpty($content->getMimetype());
$this->assertNotEmpty($content->getPreviewPicture());
$this->assertEmpty($content->getLanguage());
$createdAt = $content->getCreatedAt();
$this->assertEquals('2011', $createdAt->format('Y'));
$this->assertEquals('07', $createdAt->format('m'));
}
public function testImportWallabagWithEmptyFile()