diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-06-06 17:34:20 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-06-06 17:34:20 +0200 |
commit | 778543311f5efde4c99321f257c5a9c34a7dea5f (patch) | |
tree | 1a43386e317bfc113aa364dba895f22dfde2af9e /tests/Wallabag/CoreBundle/Controller | |
parent | def73759aeed87770d6b1e2f791370c83bebcf3e (diff) | |
download | wallabag-778543311f5efde4c99321f257c5a9c34a7dea5f.tar.gz wallabag-778543311f5efde4c99321f257c5a9c34a7dea5f.tar.zst wallabag-778543311f5efde4c99321f257c5a9c34a7dea5f.zip |
Fix tests
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | 8 | ||||
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php index e4bf0998..e07c57dd 100644 --- a/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | |||
@@ -742,7 +742,7 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
742 | $em->persist($tag); | 742 | $em->persist($tag); |
743 | 743 | ||
744 | $entry = new Entry($user); | 744 | $entry = new Entry($user); |
745 | $entry->setUrl('http://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); | 745 | $entry->setUrl('https://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); |
746 | $entry->setContent('Youhou'); | 746 | $entry->setContent('Youhou'); |
747 | $entry->setTitle('Youhou'); | 747 | $entry->setTitle('Youhou'); |
748 | $entry->addTag($tag); | 748 | $entry->addTag($tag); |
@@ -827,7 +827,7 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
827 | $em->persist($tag); | 827 | $em->persist($tag); |
828 | 828 | ||
829 | $entry = new Entry($user); | 829 | $entry = new Entry($user); |
830 | $entry->setUrl('http://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); | 830 | $entry->setUrl('https://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); |
831 | $entry->setContent('Youhou'); | 831 | $entry->setContent('Youhou'); |
832 | $entry->setTitle('Youhou'); | 832 | $entry->setTitle('Youhou'); |
833 | $entry->addTag($tag); | 833 | $entry->addTag($tag); |
@@ -845,7 +845,7 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
845 | $em->persist($tagArchived); | 845 | $em->persist($tagArchived); |
846 | 846 | ||
847 | $entryArchived = new Entry($user); | 847 | $entryArchived = new Entry($user); |
848 | $entryArchived->setUrl('http://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); | 848 | $entryArchived->setUrl('https://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); |
849 | $entryArchived->setContent('Youhou'); | 849 | $entryArchived->setContent('Youhou'); |
850 | $entryArchived->setTitle('Youhou'); | 850 | $entryArchived->setTitle('Youhou'); |
851 | $entryArchived->addTag($tagArchived); | 851 | $entryArchived->addTag($tagArchived); |
@@ -903,7 +903,7 @@ class ConfigControllerTest extends WallabagCoreTestCase | |||
903 | $em->persist($tag); | 903 | $em->persist($tag); |
904 | 904 | ||
905 | $entry = new Entry($user); | 905 | $entry = new Entry($user); |
906 | $entry->setUrl('http://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); | 906 | $entry->setUrl('https://www.lemonde.fr/europe/article/2016/10/01/pour-le-psoe-chaque-election-s-est-transformee-en-une-agonie_5006476_3214.html'); |
907 | $entry->setContent('Youhou'); | 907 | $entry->setContent('Youhou'); |
908 | $entry->setTitle('Youhou'); | 908 | $entry->setTitle('Youhou'); |
909 | $entry->addTag($tag); | 909 | $entry->addTag($tag); |
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 95482fe4..a436be79 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -11,9 +11,9 @@ use Wallabag\CoreBundle\Helper\ContentProxy; | |||
11 | 11 | ||
12 | class EntryControllerTest extends WallabagCoreTestCase | 12 | class EntryControllerTest extends WallabagCoreTestCase |
13 | { | 13 | { |
14 | const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'http://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html'; | 14 | const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'https://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html'; |
15 | public $downloadImagesEnabled = false; | 15 | public $downloadImagesEnabled = false; |
16 | public $url = 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html'; | 16 | public $url = 'https://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html'; |
17 | 17 | ||
18 | /** | 18 | /** |
19 | * @after | 19 | * @after |
@@ -1143,7 +1143,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
1143 | $client = $this->getClient(); | 1143 | $client = $this->getClient(); |
1144 | 1144 | ||
1145 | $entry = new Entry($this->getLoggedInUser()); | 1145 | $entry = new Entry($this->getLoggedInUser()); |
1146 | $entry->setUrl('http://www.lemonde.fr/incorrect-url/'); | 1146 | $entry->setUrl('https://www.lemonde.fr/incorrect-url/'); |
1147 | $entry->setHttpStatus(404); | 1147 | $entry->setHttpStatus(404); |
1148 | $this->getEntityManager()->persist($entry); | 1148 | $this->getEntityManager()->persist($entry); |
1149 | 1149 | ||
@@ -1342,8 +1342,8 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
1342 | null, | 1342 | null, |
1343 | ], | 1343 | ], |
1344 | 'es-ES' => [ | 1344 | 'es-ES' => [ |
1345 | 'https://www.muylinux.com/2015/04/17/odf-reino-unido-microsoft-google/', | 1345 | 'https://www.20minutos.es/noticia/3360685/0/gobierno-sanchez-primero-historia-mas-mujeres-que-hombres/', |
1346 | 'es_ES', | 1346 | 'es', |
1347 | ], | 1347 | ], |
1348 | ]; | 1348 | ]; |
1349 | } | 1349 | } |