mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Fix deprecated method in tests
This commit is contained in:
parent
7332d1f4e5
commit
732ec8a2eb
44 changed files with 314 additions and 326 deletions
|
@ -23,8 +23,8 @@ class FeedControllerTest extends WallabagCoreTestCase
|
|||
$this->assertSame(1, $xpath->query('/a:feed')->length);
|
||||
|
||||
$this->assertSame(1, $xpath->query('/a:feed/a:title')->length);
|
||||
$this->assertContains('favicon.ico', $xpath->query('/a:feed/a:icon')->item(0)->nodeValue);
|
||||
$this->assertContains('logo-square.png', $xpath->query('/a:feed/a:logo')->item(0)->nodeValue);
|
||||
$this->assertStringContainsString('favicon.ico', $xpath->query('/a:feed/a:icon')->item(0)->nodeValue);
|
||||
$this->assertStringContainsString('logo-square.png', $xpath->query('/a:feed/a:logo')->item(0)->nodeValue);
|
||||
|
||||
$this->assertSame(1, $xpath->query('/a:feed/a:updated')->length);
|
||||
|
||||
|
@ -42,7 +42,7 @@ class FeedControllerTest extends WallabagCoreTestCase
|
|||
}
|
||||
|
||||
$this->assertSame(1, $xpath->query('/a:feed/a:link[@rel="self"]')->length);
|
||||
$this->assertContains($type, $xpath->query('/a:feed/a:link[@rel="self"]')->item(0)->getAttribute('href'));
|
||||
$this->assertStringContainsString($type, $xpath->query('/a:feed/a:link[@rel="self"]')->item(0)->getAttribute('href'));
|
||||
|
||||
$this->assertSame(1, $xpath->query('/a:feed/a:link[@rel="last"]')->length);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue