class EntryControllerTest extends WallabagCoreTestCase
{
- 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';
+ 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';
public $downloadImagesEnabled = false;
- 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';
+ 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';
/**
* @after
$this->assertGreaterThan(1, $title = $crawler->filter('div[id=article] h1')->extract(['_text']));
$this->assertContains('My updated title hehe :)', $title[0]);
- $this->assertSame(1, count($stats = $crawler->filter('div[class=tools] ul[class=stats] li a[class=tool]')->extract(['_text'])));
+ $this->assertSame(1, \count($stats = $crawler->filter('div[class=tools] ul[class=stats] li a[class=tool]')->extract(['_text'])));
$this->assertNotContains('example.io', trim($stats[0]));
}
$client = $this->getClient();
$entry = new Entry($this->getLoggedInUser());
- $entry->setUrl('http://www.lemonde.fr/incorrect-url/');
+ $entry->setUrl('https://www.lemonde.fr/incorrect-url/');
$entry->setHttpStatus(404);
$this->getEntityManager()->persist($entry);
'http://www.hao123.com/shequ?__noscript__-=1',
'zh_CN',
],
- 'de_AT' => [
- 'https://buy.garmin.com/de-AT/AT/catalog/product/compareResult.ep?compareProduct=112885&compareProduct=36728',
- 'de_AT',
- ],
- 'ru_RU' => [
- 'http://netler.ru/ikt/windows-error-reporting.htm',
- 'ru_RU',
+ 'ru' => [
+ 'https://www.kp.ru/daily/26879.7/3921982/',
+ 'ru',
],
'pt_BR' => [
- 'http://precodoscombustiveis.com.br/postos/cidade/4121/pr/maringa',
+ 'https://politica.estadao.com.br/noticias/eleicoes,campanha-catatonica,70002491983',
'pt_BR',
],
'fucked_list_of_languages' => [
null,
],
'es-ES' => [
- 'https://www.muylinux.com/2015/04/17/odf-reino-unido-microsoft-google/',
- 'es_ES',
+ 'https://www.20minutos.es/noticia/3360685/0/gobierno-sanchez-primero-historia-mas-mujeres-que-hombres/',
+ 'es',
],
];
}