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 | |
parent | def73759aeed87770d6b1e2f791370c83bebcf3e (diff) | |
download | wallabag-778543311f5efde4c99321f257c5a9c34a7dea5f.tar.gz wallabag-778543311f5efde4c99321f257c5a9c34a7dea5f.tar.zst wallabag-778543311f5efde4c99321f257c5a9c34a7dea5f.zip |
Fix tests
Diffstat (limited to 'tests')
8 files changed, 30 insertions, 31 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php index 2e9b9305..9722986e 100644 --- a/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php | |||
@@ -419,7 +419,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
419 | public function testPostEntry() | 419 | public function testPostEntry() |
420 | { | 420 | { |
421 | $this->client->request('POST', '/api/entries.json', [ | 421 | $this->client->request('POST', '/api/entries.json', [ |
422 | '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', | 422 | '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', |
423 | 'tags' => 'google', | 423 | 'tags' => 'google', |
424 | 'title' => 'New title for my article', | 424 | 'title' => 'New title for my article', |
425 | 'content' => 'my content', | 425 | 'content' => 'my content', |
@@ -434,7 +434,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
434 | $content = json_decode($this->client->getResponse()->getContent(), true); | 434 | $content = json_decode($this->client->getResponse()->getContent(), true); |
435 | 435 | ||
436 | $this->assertGreaterThan(0, $content['id']); | 436 | $this->assertGreaterThan(0, $content['id']); |
437 | $this->assertSame('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', $content['url']); | 437 | $this->assertSame('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', $content['url']); |
438 | $this->assertSame(0, $content['is_archived']); | 438 | $this->assertSame(0, $content['is_archived']); |
439 | $this->assertSame(0, $content['is_starred']); | 439 | $this->assertSame(0, $content['is_starred']); |
440 | $this->assertNull($content['starred_at']); | 440 | $this->assertNull($content['starred_at']); |
@@ -455,7 +455,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
455 | { | 455 | { |
456 | $em = $this->client->getContainer()->get('doctrine.orm.entity_manager'); | 456 | $em = $this->client->getContainer()->get('doctrine.orm.entity_manager'); |
457 | $entry = new Entry($em->getReference(User::class, 1)); | 457 | $entry = new Entry($em->getReference(User::class, 1)); |
458 | $entry->setUrl('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'); | 458 | $entry->setUrl('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'); |
459 | $entry->setArchived(true); | 459 | $entry->setArchived(true); |
460 | $entry->addTag((new Tag())->setLabel('google')); | 460 | $entry->addTag((new Tag())->setLabel('google')); |
461 | $entry->addTag((new Tag())->setLabel('apple')); | 461 | $entry->addTag((new Tag())->setLabel('apple')); |
@@ -464,7 +464,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
464 | $em->clear(); | 464 | $em->clear(); |
465 | 465 | ||
466 | $this->client->request('POST', '/api/entries.json', [ | 466 | $this->client->request('POST', '/api/entries.json', [ |
467 | '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', | 467 | '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', |
468 | 'archive' => '1', | 468 | 'archive' => '1', |
469 | 'tags' => 'google, apple', | 469 | 'tags' => 'google, apple', |
470 | ]); | 470 | ]); |
@@ -474,7 +474,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
474 | $content = json_decode($this->client->getResponse()->getContent(), true); | 474 | $content = json_decode($this->client->getResponse()->getContent(), true); |
475 | 475 | ||
476 | $this->assertGreaterThan(0, $content['id']); | 476 | $this->assertGreaterThan(0, $content['id']); |
477 | $this->assertSame('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', $content['url']); | 477 | $this->assertSame('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', $content['url']); |
478 | $this->assertSame(1, $content['is_archived']); | 478 | $this->assertSame(1, $content['is_archived']); |
479 | $this->assertSame(0, $content['is_starred']); | 479 | $this->assertSame(0, $content['is_starred']); |
480 | $this->assertCount(3, $content['tags']); | 480 | $this->assertCount(3, $content['tags']); |
@@ -519,7 +519,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
519 | { | 519 | { |
520 | $now = new \DateTime(); | 520 | $now = new \DateTime(); |
521 | $this->client->request('POST', '/api/entries.json', [ | 521 | $this->client->request('POST', '/api/entries.json', [ |
522 | 'url' => 'http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', | 522 | 'url' => 'https://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', |
523 | 'archive' => '1', | 523 | 'archive' => '1', |
524 | 'starred' => '1', | 524 | 'starred' => '1', |
525 | ]); | 525 | ]); |
@@ -529,7 +529,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
529 | $content = json_decode($this->client->getResponse()->getContent(), true); | 529 | $content = json_decode($this->client->getResponse()->getContent(), true); |
530 | 530 | ||
531 | $this->assertGreaterThan(0, $content['id']); | 531 | $this->assertGreaterThan(0, $content['id']); |
532 | $this->assertSame('http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', $content['url']); | 532 | $this->assertSame('https://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', $content['url']); |
533 | $this->assertSame(1, $content['is_archived']); | 533 | $this->assertSame(1, $content['is_archived']); |
534 | $this->assertSame(1, $content['is_starred']); | 534 | $this->assertSame(1, $content['is_starred']); |
535 | $this->assertGreaterThanOrEqual($now->getTimestamp(), (new \DateTime($content['starred_at']))->getTimestamp()); | 535 | $this->assertGreaterThanOrEqual($now->getTimestamp(), (new \DateTime($content['starred_at']))->getTimestamp()); |
@@ -539,7 +539,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
539 | public function testPostArchivedAndStarredEntryWithoutQuotes() | 539 | public function testPostArchivedAndStarredEntryWithoutQuotes() |
540 | { | 540 | { |
541 | $this->client->request('POST', '/api/entries.json', [ | 541 | $this->client->request('POST', '/api/entries.json', [ |
542 | 'url' => 'http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', | 542 | 'url' => 'https://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', |
543 | 'archive' => 0, | 543 | 'archive' => 0, |
544 | 'starred' => 1, | 544 | 'starred' => 1, |
545 | ]); | 545 | ]); |
@@ -549,7 +549,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
549 | $content = json_decode($this->client->getResponse()->getContent(), true); | 549 | $content = json_decode($this->client->getResponse()->getContent(), true); |
550 | 550 | ||
551 | $this->assertGreaterThan(0, $content['id']); | 551 | $this->assertGreaterThan(0, $content['id']); |
552 | $this->assertSame('http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', $content['url']); | 552 | $this->assertSame('https://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', $content['url']); |
553 | $this->assertSame(0, $content['is_archived']); | 553 | $this->assertSame(0, $content['is_archived']); |
554 | $this->assertSame(1, $content['is_starred']); | 554 | $this->assertSame(1, $content['is_starred']); |
555 | } | 555 | } |
@@ -557,7 +557,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
557 | public function testPostEntryWithOriginUrl() | 557 | public function testPostEntryWithOriginUrl() |
558 | { | 558 | { |
559 | $this->client->request('POST', '/api/entries.json', [ | 559 | $this->client->request('POST', '/api/entries.json', [ |
560 | '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', | 560 | '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', |
561 | 'tags' => 'google', | 561 | 'tags' => 'google', |
562 | 'title' => 'New title for my article', | 562 | 'title' => 'New title for my article', |
563 | 'content' => 'my content', | 563 | 'content' => 'my content', |
@@ -573,7 +573,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
573 | $content = json_decode($this->client->getResponse()->getContent(), true); | 573 | $content = json_decode($this->client->getResponse()->getContent(), true); |
574 | 574 | ||
575 | $this->assertGreaterThan(0, $content['id']); | 575 | $this->assertGreaterThan(0, $content['id']); |
576 | $this->assertSame('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', $content['url']); | 576 | $this->assertSame('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', $content['url']); |
577 | $this->assertSame('http://mysource.tld', $content['origin_url']); | 577 | $this->assertSame('http://mysource.tld', $content['origin_url']); |
578 | } | 578 | } |
579 | 579 | ||
@@ -1013,7 +1013,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
1013 | public function testReloadEntry() | 1013 | public function testReloadEntry() |
1014 | { | 1014 | { |
1015 | $this->client->request('POST', '/api/entries.json', [ | 1015 | $this->client->request('POST', '/api/entries.json', [ |
1016 | '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', | 1016 | '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', |
1017 | 'archive' => '1', | 1017 | 'archive' => '1', |
1018 | 'tags' => 'google, apple', | 1018 | 'tags' => 'google, apple', |
1019 | ]); | 1019 | ]); |
@@ -1117,7 +1117,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
1117 | public function testPostEntriesListAction() | 1117 | public function testPostEntriesListAction() |
1118 | { | 1118 | { |
1119 | $list = [ | 1119 | $list = [ |
1120 | 'http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', | 1120 | 'https://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', |
1121 | 'http://0.0.0.0/entry2', | 1121 | 'http://0.0.0.0/entry2', |
1122 | ]; | 1122 | ]; |
1123 | 1123 | ||
@@ -1128,7 +1128,7 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
1128 | $content = json_decode($this->client->getResponse()->getContent(), true); | 1128 | $content = json_decode($this->client->getResponse()->getContent(), true); |
1129 | 1129 | ||
1130 | $this->assertInternalType('int', $content[0]['entry']); | 1130 | $this->assertInternalType('int', $content[0]['entry']); |
1131 | $this->assertSame('http://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']); | 1131 | $this->assertSame('https://www.lemonde.fr/musiques/article/2017/04/23/loin-de-la-politique-le-printemps-de-bourges-retombe-en-enfance_5115862_1654986.html', $content[0]['url']); |
1132 | 1132 | ||
1133 | $this->assertInternalType('int', $content[1]['entry']); | 1133 | $this->assertInternalType('int', $content[1]['entry']); |
1134 | $this->assertSame('http://0.0.0.0/entry2', $content[1]['url']); | 1134 | $this->assertSame('http://0.0.0.0/entry2', $content[1]['url']); |
@@ -1209,14 +1209,14 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
1209 | $entry = new Entry($em->getReference(User::class, 1)); | 1209 | $entry = new Entry($em->getReference(User::class, 1)); |
1210 | $entry->setTitle('Antoine de Caunes : « Je veux avoir le droit de tâtonner »'); | 1210 | $entry->setTitle('Antoine de Caunes : « Je veux avoir le droit de tâtonner »'); |
1211 | $entry->setContent('hihi'); | 1211 | $entry->setContent('hihi'); |
1212 | $entry->setUrl('http://www.lemonde.fr/m-perso/article/2017/06/25/antoine-de-caunes-je-veux-avoir-le-droit-de-tatonner_5150728_4497916.html'); | 1212 | $entry->setUrl('https://www.lemonde.fr/m-perso/article/2017/06/25/antoine-de-caunes-je-veux-avoir-le-droit-de-tatonner_5150728_4497916.html'); |
1213 | $entry->setPublishedAt(new \DateTime('2017-06-26T07:46:02+0200')); | 1213 | $entry->setPublishedAt(new \DateTime('2017-06-26T07:46:02+0200')); |
1214 | $em->persist($entry); | 1214 | $em->persist($entry); |
1215 | $em->flush(); | 1215 | $em->flush(); |
1216 | $em->clear(); | 1216 | $em->clear(); |
1217 | 1217 | ||
1218 | $this->client->request('POST', '/api/entries.json', [ | 1218 | $this->client->request('POST', '/api/entries.json', [ |
1219 | 'url' => 'http://www.lemonde.fr/m-perso/article/2017/06/25/antoine-de-caunes-je-veux-avoir-le-droit-de-tatonner_5150728_4497916.html', | 1219 | 'url' => 'https://www.lemonde.fr/m-perso/article/2017/06/25/antoine-de-caunes-je-veux-avoir-le-droit-de-tatonner_5150728_4497916.html', |
1220 | ]); | 1220 | ]); |
1221 | 1221 | ||
1222 | $this->assertSame(200, $this->client->getResponse()->getStatusCode()); | 1222 | $this->assertSame(200, $this->client->getResponse()->getStatusCode()); |
@@ -1224,6 +1224,6 @@ class EntryRestControllerTest extends WallabagApiTestCase | |||
1224 | $content = json_decode($this->client->getResponse()->getContent(), true); | 1224 | $content = json_decode($this->client->getResponse()->getContent(), true); |
1225 | 1225 | ||
1226 | $this->assertGreaterThan(0, $content['id']); | 1226 | $this->assertGreaterThan(0, $content['id']); |
1227 | $this->assertSame('http://www.lemonde.fr/m-perso/article/2017/06/25/antoine-de-caunes-je-veux-avoir-le-droit-de-tatonner_5150728_4497916.html', $content['url']); | 1227 | $this->assertSame('https://www.lemonde.fr/m-perso/article/2017/06/25/antoine-de-caunes-je-veux-avoir-le-droit-de-tatonner_5150728_4497916.html', $content['url']); |
1228 | } | 1228 | } |
1229 | } | 1229 | } |
diff --git a/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php b/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php index 38e8dd07..5ca9785d 100644 --- a/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php | |||
@@ -60,7 +60,7 @@ class CleanDuplicatesCommandTest extends WallabagCoreTestCase | |||
60 | 60 | ||
61 | public function testDuplicate() | 61 | public function testDuplicate() |
62 | { | 62 | { |
63 | $url = 'http://www.lemonde.fr/sport/visuel/2017/05/05/rondelle-prison-blanchissage-comprendre-le-hockey-sur-glace_5122587_3242.html'; | 63 | $url = 'https://www.lemonde.fr/sport/visuel/2017/05/05/rondelle-prison-blanchissage-comprendre-le-hockey-sur-glace_5122587_3242.html'; |
64 | $client = $this->getClient(); | 64 | $client = $this->getClient(); |
65 | $em = $client->getContainer()->get('doctrine.orm.entity_manager'); | 65 | $em = $client->getContainer()->get('doctrine.orm.entity_manager'); |
66 | 66 | ||
diff --git a/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php b/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php index 63c068b4..b13f6519 100644 --- a/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php | |||
@@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Entity\Entry; | |||
10 | 10 | ||
11 | class ReloadEntryCommandTest extends WallabagCoreTestCase | 11 | class ReloadEntryCommandTest extends WallabagCoreTestCase |
12 | { | 12 | { |
13 | 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'; | 13 | 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'; |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * @var entry | 16 | * @var entry |
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 | } |
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 398592e1..51df8de1 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -11,7 +11,6 @@ use Symfony\Component\Validator\ConstraintViolation; | |||
11 | use Symfony\Component\Validator\ConstraintViolationList; | 11 | use Symfony\Component\Validator\ConstraintViolationList; |
12 | use Symfony\Component\Validator\Validator\RecursiveValidator; | 12 | use Symfony\Component\Validator\Validator\RecursiveValidator; |
13 | use Wallabag\CoreBundle\Entity\Entry; | 13 | use Wallabag\CoreBundle\Entity\Entry; |
14 | use Wallabag\CoreBundle\Entity\Tag; | ||
15 | use Wallabag\CoreBundle\Helper\ContentProxy; | 14 | use Wallabag\CoreBundle\Helper\ContentProxy; |
16 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; | 15 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; |
17 | use Wallabag\UserBundle\Entity\User; | 16 | use Wallabag\UserBundle\Entity\User; |
diff --git a/tests/Wallabag/ImportBundle/Controller/InstapaperControllerTest.php b/tests/Wallabag/ImportBundle/Controller/InstapaperControllerTest.php index 9b887cbb..dacdf488 100644 --- a/tests/Wallabag/ImportBundle/Controller/InstapaperControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/InstapaperControllerTest.php | |||
@@ -129,7 +129,7 @@ class InstapaperControllerTest extends WallabagCoreTestCase | |||
129 | ->get('doctrine.orm.entity_manager') | 129 | ->get('doctrine.orm.entity_manager') |
130 | ->getRepository('WallabagCoreBundle:Entry') | 130 | ->getRepository('WallabagCoreBundle:Entry') |
131 | ->findByUrlAndUserId( | 131 | ->findByUrlAndUserId( |
132 | 'https://www.20minutes.fr/high-tech/2077615-20170531-dis-donc-donald-trump-quoi-exactement-covfefe', | 132 | 'https://www.20minutes.fr/high-tech/2077615-20170531-quoi-exactement-tweet-covfefe-donald-trump-persiste-signe', |
133 | $this->getLoggedInUserId() | 133 | $this->getLoggedInUserId() |
134 | ); | 134 | ); |
135 | 135 | ||
diff --git a/tests/Wallabag/ImportBundle/fixtures/instapaper-export.csv b/tests/Wallabag/ImportBundle/fixtures/instapaper-export.csv index 06d018e0..7b692d00 100644 --- a/tests/Wallabag/ImportBundle/fixtures/instapaper-export.csv +++ b/tests/Wallabag/ImportBundle/fixtures/instapaper-export.csv | |||
@@ -2,4 +2,4 @@ URL,Title,Selection,Folder | |||
2 | http://www.liberation.fr/societe/2012/12/06/baumettes-un-tour-en-cellule_865551,Baumettes : un tour en cellule,,Unread | 2 | http://www.liberation.fr/societe/2012/12/06/baumettes-un-tour-en-cellule_865551,Baumettes : un tour en cellule,,Unread |
3 | https://redditblog.com/2016/09/20/amp-and-reactredux/,AMP and React+Redux: Why Not?,,Archive | 3 | https://redditblog.com/2016/09/20/amp-and-reactredux/,AMP and React+Redux: Why Not?,,Archive |
4 | https://medium.com/@the_minh/why-foursquare-swarm-is-still-my-favourite-social-network-e38228493e6c,Why Foursquare / Swarm is still my favourite social network,,Starred | 4 | https://medium.com/@the_minh/why-foursquare-swarm-is-still-my-favourite-social-network-e38228493e6c,Why Foursquare / Swarm is still my favourite social network,,Starred |
5 | https://www.20minutes.fr/high-tech/2077615-20170531-dis-donc-donald-trump-quoi-exactement-covfefe,"Dis donc Donald Trump, c'est quoi exactement «covfefe»?",,test_tag | 5 | https://www.20minutes.fr/high-tech/2077615-20170531-quoi-exactement-tweet-covfefe-donald-trump-persiste-signe,"Dis donc Donald Trump, c'est quoi exactement «covfefe»?",,test_tag |