]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
Merge pull request #2372 from pmartin/api-get-entry-as-epub
[github/wallabag/wallabag.git] / tests / Wallabag / ImportBundle / Controller / ChromeControllerTest.php
index 8890c5b15e7fd419442b8eebfb02681df3dbce7f..c0417bbe85b0972fc9ad0a44aae1df54938a974b 100644 (file)
@@ -54,6 +54,7 @@ class ChromeControllerTest extends WallabagCoreTestCase
 
     public function testImportChromeWithRedisEnabled()
     {
+        $this->checkRedis();
         $this->logInAs('admin');
         $client = $this->getClient();
         $client->getContainer()->get('craue_config')->set('import_with_redis', 1);
@@ -120,6 +121,10 @@ class ChromeControllerTest extends WallabagCoreTestCase
         $this->assertNotEmpty($content->getPreviewPicture());
         $this->assertNotEmpty($content->getLanguage());
         $this->assertEquals(0, count($content->getTags()));
+
+        $createdAt = $content->getCreatedAt();
+        $this->assertEquals('2011', $createdAt->format('Y'));
+        $this->assertEquals('07', $createdAt->format('m'));
     }
 
     public function testImportWallabagWithEmptyFile()