diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-07-09 18:58:47 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-07-09 18:58:47 +0200 |
commit | 9a62cb9fa4e1fa401a5b1604283eabc4b665a3b7 (patch) | |
tree | 8565a74eae7aabf3f5af6e910e0d576a13360193 | |
parent | 1554eb0adac470151d9668d55ce1450c64f862d9 (diff) | |
download | wallabag-9a62cb9fa4e1fa401a5b1604283eabc4b665a3b7.tar.gz wallabag-9a62cb9fa4e1fa401a5b1604283eabc4b665a3b7.tar.zst wallabag-9a62cb9fa4e1fa401a5b1604283eabc4b665a3b7.zip |
add a few tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/FeedControllerTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
23 | $this->assertEquals(1, $xpath->query('/a:feed')->length); | 23 | $this->assertEquals(1, $xpath->query('/a:feed')->length); |
24 | 24 | ||
25 | $this->assertEquals(1, $xpath->query('/a:feed/a:title')->length); | 25 | $this->assertEquals(1, $xpath->query('/a:feed/a:title')->length); |
26 | $this->assertContains('favicon.ico', $xpath->query('/a:feed/a:icon')->item(0)->nodeValue); | ||
27 | $this->assertContains('logo-square.png', $xpath->query('/a:feed/a:logo')->item(0)->nodeValue); | ||
26 | 28 | ||
27 | $this->assertEquals(1, $xpath->query('/a:feed/a:updated')->length); | 29 | $this->assertEquals(1, $xpath->query('/a:feed/a:updated')->length); |
28 | 30 | ||
29 | $this->assertEquals(1, $xpath->query('/a:feed/a:generator')->length); | 31 | $this->assertEquals(1, $xpath->query('/a:feed/a:generator')->length); |
30 | $this->assertEquals('wallabag', $xpath->query('/a:feed/a:generator')->item(0)->nodeValue); | 32 | $this->assertEquals('wallabag', $xpath->query('/a:feed/a:generator')->item(0)->nodeValue); |
33 | $this->assertEquals('admin', $xpath->query('/a:feed/a:author/a:name')->item(0)->nodeValue); | ||
31 | 34 | ||
32 | $this->assertEquals(1, $xpath->query('/a:feed/a:subtitle')->length); | 35 | $this->assertEquals(1, $xpath->query('/a:feed/a:subtitle')->length); |
33 | if (null !== $tagValue && 0 === strpos($type, 'tag')) { | 36 | if (null !== $tagValue && 0 === strpos($type, 'tag')) { |