From: Thomas Citharel Date: Sun, 9 Jul 2017 16:58:47 +0000 (+0200) Subject: add a few tests X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9a62cb9fa4e1fa401a5b1604283eabc4b665a3b7;hp=1554eb0adac470151d9668d55ce1450c64f862d9;p=github%2Fwallabag%2Fwallabag.git add a few tests Signed-off-by: Thomas Citharel --- diff --git a/tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php b/tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php index 3bc7f951..c900ff5c 100644 --- a/tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php @@ -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')) {