aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ImportBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 15:29:40 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 15:32:02 +0200
commit27acc6ddb8b0a1549a3f015171621e3056ef65d2 (patch)
treee2fd978d48b52638f7ae4cf0c7a6a68007b95bf6 /tests/Wallabag/ImportBundle/Controller
parentf0fd82d039f491d1057ed194084ee40d4327011e (diff)
downloadwallabag-27acc6ddb8b0a1549a3f015171621e3056ef65d2.tar.gz
wallabag-27acc6ddb8b0a1549a3f015171621e3056ef65d2.tar.zst
wallabag-27acc6ddb8b0a1549a3f015171621e3056ef65d2.zip
Fix bad date format in Browser import
Diffstat (limited to 'tests/Wallabag/ImportBundle/Controller')
-rw-r--r--tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php4
-rw-r--r--tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php b/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
index 8890c5b1..23c80bec 100644
--- a/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
@@ -120,6 +120,10 @@ class ChromeControllerTest extends WallabagCoreTestCase
120 $this->assertNotEmpty($content->getPreviewPicture()); 120 $this->assertNotEmpty($content->getPreviewPicture());
121 $this->assertNotEmpty($content->getLanguage()); 121 $this->assertNotEmpty($content->getLanguage());
122 $this->assertEquals(0, count($content->getTags())); 122 $this->assertEquals(0, count($content->getTags()));
123
124 $createdAt = $content->getCreatedAt();
125 $this->assertEquals('2011', $createdAt->format('Y'));
126 $this->assertEquals('07', $createdAt->format('m'));
123 } 127 }
124 128
125 public function testImportWallabagWithEmptyFile() 129 public function testImportWallabagWithEmptyFile()
diff --git a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
index 2de0aa09..10fbc225 100644
--- a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
@@ -133,6 +133,10 @@ class FirefoxControllerTest extends WallabagCoreTestCase
133 $this->assertNotEmpty($content->getMimetype()); 133 $this->assertNotEmpty($content->getMimetype());
134 $this->assertNotEmpty($content->getPreviewPicture()); 134 $this->assertNotEmpty($content->getPreviewPicture());
135 $this->assertEmpty($content->getLanguage()); 135 $this->assertEmpty($content->getLanguage());
136
137 $createdAt = $content->getCreatedAt();
138 $this->assertEquals('2011', $createdAt->format('Y'));
139 $this->assertEquals('07', $createdAt->format('m'));
136 } 140 }
137 141
138 public function testImportWallabagWithEmptyFile() 142 public function testImportWallabagWithEmptyFile()