]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
add a few tests
authorThomas Citharel <tcit@tcit.fr>
Sun, 9 Jul 2017 16:58:47 +0000 (18:58 +0200)
committerThomas Citharel <tcit@tcit.fr>
Sun, 9 Jul 2017 16:58:47 +0000 (18:58 +0200)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php

index 3bc7f95116078ad1e9d1a4aa1bff100f7e8c2908..c900ff5cf3d94f7eb09494970d9b5b70808b4ba3 100644 (file)
@@ -23,11 +23,14 @@ class FeedControllerTest extends WallabagCoreTestCase
         $this->assertEquals(1, $xpath->query('/a:feed')->length);
 
         $this->assertEquals(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->assertEquals(1, $xpath->query('/a:feed/a:updated')->length);
 
         $this->assertEquals(1, $xpath->query('/a:feed/a:generator')->length);
         $this->assertEquals('wallabag', $xpath->query('/a:feed/a:generator')->item(0)->nodeValue);
+        $this->assertEquals('admin', $xpath->query('/a:feed/a:author/a:name')->item(0)->nodeValue);
 
         $this->assertEquals(1, $xpath->query('/a:feed/a:subtitle')->length);
         if (null !== $tagValue && 0 === strpos($type, 'tag')) {