forked from wallabag/wallabag
Enable PHPStan
- Fix error for level 0 & 1 (level 7 has 699 errors...) - Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
This commit is contained in:
@ -522,9 +522,12 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||
|
||||
$crawler = $client->followRedirect();
|
||||
|
||||
$this->assertGreaterThan(1, $title = $crawler->filter('div[id=article] h1')->extract(['_text']));
|
||||
$title = $crawler->filter('div[id=article] h1')->extract(['_text']);
|
||||
$this->assertGreaterThan(1, $title);
|
||||
$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'])));
|
||||
|
||||
$stats = $crawler->filter('div[class=tools] ul[class=stats] li a[class=tool]')->extract(['_text']);
|
||||
$this->assertCount(1, $stats);
|
||||
$this->assertNotContains('example.io', trim($stats[0]));
|
||||
}
|
||||
|
||||
@ -1327,10 +1330,6 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||
'http://www.hao123.com/shequ?__noscript__-=1',
|
||||
'zh_CN',
|
||||
],
|
||||
'ru' => [
|
||||
'https://www.kp.ru/daily/26879.7/3921982/',
|
||||
'ru',
|
||||
],
|
||||
'pt_BR' => [
|
||||
'https://politica.estadao.com.br/noticias/eleicoes,campanha-catatonica,70002491983',
|
||||
'pt_BR',
|
||||
|
||||
Reference in New Issue
Block a user