diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2018-07-05 13:37:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 13:37:28 +0000 |
commit | 200392b462183982d6636819d549003225c5de7f (patch) | |
tree | a398b5361ae068c486909220c07c268bdc3e38f4 | |
parent | 18167b9a249b679e1226f04c0f05a7489b90d4f7 (diff) | |
parent | 9c48053b1493871715d88f84120303cc56c80a4c (diff) | |
download | wallabag-200392b462183982d6636819d549003225c5de7f.tar.gz wallabag-200392b462183982d6636819d549003225c5de7f.tar.zst wallabag-200392b462183982d6636819d549003225c5de7f.zip |
Merge pull request #3685 from wallabag/fix-random-failing-test
Replace SO url by lemonde.fr to avoid random failing test
-rw-r--r-- | tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php | 8 | ||||
-rw-r--r-- | tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php index dc9d9a8f..fc02c813 100644 --- a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php | |||
@@ -128,14 +128,14 @@ class FirefoxControllerTest extends WallabagCoreTestCase | |||
128 | ->get('doctrine.orm.entity_manager') | 128 | ->get('doctrine.orm.entity_manager') |
129 | ->getRepository('WallabagCoreBundle:Entry') | 129 | ->getRepository('WallabagCoreBundle:Entry') |
130 | ->findByUrlAndUserId( | 130 | ->findByUrlAndUserId( |
131 | 'https://stackoverflow.com/questions/15017163/parser-for-exported-bookmarks-html-file-of-google-chrome-and-mozilla-in-java', | 131 | 'https://www.lemonde.fr/disparitions/article/2018/07/05/le-journaliste-et-cineaste-claude-lanzmann-est-mort_5326313_3382.html', |
132 | $this->getLoggedInUserId() | 132 | $this->getLoggedInUserId() |
133 | ); | 133 | ); |
134 | 134 | ||
135 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); | 135 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); |
136 | $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://stackoverflow.com is ok'); | 136 | $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://www.lemonde.fr is ok'); |
137 | $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://stackoverflow.com is ok'); | 137 | $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://www.lemonde.fr is ok'); |
138 | $this->assertEmpty($content->getLanguage(), 'Language for https://stackoverflow.com is ok'); | 138 | $this->assertNotEmpty($content->getLanguage(), 'Language for https://www.lemonde.fr is ok'); |
139 | 139 | ||
140 | $createdAt = $content->getCreatedAt(); | 140 | $createdAt = $content->getCreatedAt(); |
141 | $this->assertSame('2013', $createdAt->format('Y')); | 141 | $this->assertSame('2013', $createdAt->format('Y')); |
diff --git a/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json b/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json index 406b5697..3d90b489 100644 --- a/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json +++ b/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json | |||
@@ -39,13 +39,13 @@ | |||
39 | }, | 39 | }, |
40 | { | 40 | { |
41 | "guid": "E385l9vZ_LVn", | 41 | "guid": "E385l9vZ_LVn", |
42 | "title": "Parser for Exported Bookmarks HTML file of Google Chrome and Mozilla in Java", | 42 | "title": "Le journaliste et cinéaste Claude Lanzmann est mort", |
43 | "index": 1, | 43 | "index": 1, |
44 | "dateAdded": 1388166091544000, | 44 | "dateAdded": 1388166091544000, |
45 | "lastModified": 1388166091545000, | 45 | "lastModified": 1388166091545000, |
46 | "id": 5, | 46 | "id": 5, |
47 | "type": "text/x-moz-place", | 47 | "type": "text/x-moz-place", |
48 | "uri": "http://stackoverflow.com/questions/15017163/parser-for-exported-bookmarks-html-file-of-google-chrome-and-mozilla-in-java" | 48 | "uri": "https://www.lemonde.fr/disparitions/article/2018/07/05/le-journaliste-et-cineaste-claude-lanzmann-est-mort_5326313_3382.html" |
49 | } | 49 | } |
50 | ] | 50 | ] |
51 | }, | 51 | }, |