aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-22 14:58:37 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-22 14:58:37 +0200
commit01f8a776a49882dc1d1bb612b7f396d66400fa4b (patch)
tree6faafc4516d7b984659968f5cdbf3f88f01dca94 /tests
parenta6b5b8f7a9a0bb3cdf437bbf020dcb1faadf00e9 (diff)
downloadwallabag-01f8a776a49882dc1d1bb612b7f396d66400fa4b.tar.gz
wallabag-01f8a776a49882dc1d1bb612b7f396d66400fa4b.tar.zst
wallabag-01f8a776a49882dc1d1bb612b7f396d66400fa4b.zip
Fixed unit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
index 8960dd25..b5655f71 100644
--- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
+++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
@@ -527,7 +527,7 @@ class EntryControllerTest extends WallabagCoreTestCase
527 527
528 $this->assertGreaterThan(1, $title = $crawler->filter('div[id=article] h1')->extract(['_text'])); 528 $this->assertGreaterThan(1, $title = $crawler->filter('div[id=article] h1')->extract(['_text']));
529 $this->assertContains('My updated title hehe :)', $title[0]); 529 $this->assertContains('My updated title hehe :)', $title[0]);
530 $this->assertGreaterThan(1, $stats = $crawler->filter('div[class=tools] ul[class=stats] li a[class=tool]')->extract(['_text'])); 530 $this->assertGreaterThan(1, $stats = $crawler->filter('div[class="tools grey-text"] ul[class=stats] li a[class="tool grey-text"]')->extract(['_text']));
531 $this->assertContains('example.io', trim($stats[1])); 531 $this->assertContains('example.io', trim($stats[1]));
532 } 532 }
533 533
@@ -562,7 +562,7 @@ class EntryControllerTest extends WallabagCoreTestCase
562 $this->assertGreaterThan(1, $title); 562 $this->assertGreaterThan(1, $title);
563 $this->assertContains('My updated title hehe :)', $title[0]); 563 $this->assertContains('My updated title hehe :)', $title[0]);
564 564
565 $stats = $crawler->filter('div[class=tools] ul[class=stats] li a[class=tool]')->extract(['_text']); 565 $stats = $crawler->filter('div[class="tools grey-text"] ul[class=stats] li a[class="tool grey-text"]')->extract(['_text']);
566 $this->assertCount(1, $stats); 566 $this->assertCount(1, $stats);
567 $this->assertNotContains('example.io', trim($stats[0])); 567 $this->assertNotContains('example.io', trim($stats[0]));
568 } 568 }