Replace zataz url

This commit is contained in:
Floran Brutel 2018-03-30 23:09:03 +02:00
parent 3be96dcb17
commit 739a4024fa
No known key found for this signature in database
GPG key ID: 0A61C46D590F5999
3 changed files with 9 additions and 9 deletions

View file

@ -1309,9 +1309,9 @@ class EntryControllerTest extends WallabagCoreTestCase
'https://www.pravda.ru/world/09-06-2017/1337283-qatar-0/', 'https://www.pravda.ru/world/09-06-2017/1337283-qatar-0/',
'ru', 'ru',
], ],
'fr-FR' => [ 'fr' => [
'https://www.zataz.com/90-des-dossiers-medicaux-des-coreens-du-sud-vendus-a-des-entreprises-privees/', 'https://fr.wikipedia.org/wiki/Wallabag',
'fr_FR', 'fr',
], ],
'de' => [ 'de' => [
'https://www.bild.de/politik/ausland/theresa-may/wahlbeben-grossbritannien-analyse-52108924.bild.html', 'https://www.bild.de/politik/ausland/theresa-may/wahlbeben-grossbritannien-analyse-52108924.bild.html',

View file

@ -111,7 +111,7 @@ class ReadabilityControllerTest extends WallabagCoreTestCase
->get('doctrine.orm.entity_manager') ->get('doctrine.orm.entity_manager')
->getRepository('WallabagCoreBundle:Entry') ->getRepository('WallabagCoreBundle:Entry')
->findByUrlAndUserId( ->findByUrlAndUserId(
'https://www.zataz.com/90-des-dossiers-medicaux-des-coreens-du-sud-vendus-a-des-entreprises-privees/', 'https://www.20minutes.fr/bordeaux/2120479-20170823-bordeaux-poche-chocolatine-association-traduit-etudiants-etrangers-mots-sud-ouest',
$this->getLoggedInUserId() $this->getLoggedInUserId()
); );
@ -119,9 +119,9 @@ class ReadabilityControllerTest extends WallabagCoreTestCase
$this->assertContains('flashes.import.notice.summary', $body[0]); $this->assertContains('flashes.import.notice.summary', $body[0]);
$this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
$this->assertNotEmpty($content->getMimetype(), 'Mimetype for http://www.zataz.com is ok'); $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://www.20minutes.fr is ok');
$this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for http://www.zataz.com is ok'); $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://www.20minutes.fr is ok');
$this->assertNotEmpty($content->getLanguage(), 'Language for http://www.zataz.com is ok'); $this->assertNotEmpty($content->getLanguage(), 'Language for https://www.20minutes.fr is ok');
$tags = $content->getTags(); $tags = $content->getTags();
$this->assertContains('foot', $tags, 'It includes the "foot" tag'); $this->assertContains('foot', $tags, 'It includes the "foot" tag');

View file

@ -21,8 +21,8 @@
"archive": 0, "archive": 0,
"date_added": "2016-09-08T11:55:58+0200", "date_added": "2016-09-08T11:55:58+0200",
"favorite": 0, "favorite": 0,
"article__title": "90% des dossiers médicaux des Coréens du sud vendus à des entreprises privées - ZATAZ", "article__title": "Bordeaux: Poche, chocolatine… Une association traduit aux étudiants étrangers les mots du Sud-Ouest",
"article__url": "https://www.zataz.com/90-des-dossiers-medicaux-des-coreens-du-sud-vendus-a-des-entreprises-privees/" "article__url": "https://www.20minutes.fr/bordeaux/2120479-20170823-bordeaux-poche-chocolatine-association-traduit-etudiants-etrangers-mots-sud-ouest"
} }
], ],
"recommendations": [] "recommendations": []