aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-15 09:43:48 +0200
committerThomas Citharel <tcit@tcit.fr>2017-07-09 19:05:48 +0200
commit378aaefbbf60698c7b8faafc20f6b8cb22357e31 (patch)
treed9bf0867797d4f4b60d117a050e1b72719e6f71a /tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
parentb5d7eb148c4cd62ff187b08765f0c13c7d330fcf (diff)
downloadwallabag-378aaefbbf60698c7b8faafc20f6b8cb22357e31.tar.gz
wallabag-378aaefbbf60698c7b8faafc20f6b8cb22357e31.tar.zst
wallabag-378aaefbbf60698c7b8faafc20f6b8cb22357e31.zip
Notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php')
-rw-r--r--tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
index ceec4b37..1fca2251 100644
--- a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
+++ b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
@@ -16,6 +16,10 @@ class WallabagExtensionTest extends \PHPUnit_Framework_TestCase
16 ->disableOriginalConstructor() 16 ->disableOriginalConstructor()
17 ->getMock(); 17 ->getMock();
18 18
19 $notificationRepository = $this->getMockBuilder('Wallabag\CoreBundle\Repository\NotificationRepository')
20 ->disableOriginalConstructor()
21 ->getMock();
22
19 $tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface') 23 $tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface')
20 ->disableOriginalConstructor() 24 ->disableOriginalConstructor()
21 ->getMock(); 25 ->getMock();
@@ -24,7 +28,7 @@ class WallabagExtensionTest extends \PHPUnit_Framework_TestCase
24 ->disableOriginalConstructor() 28 ->disableOriginalConstructor()
25 ->getMock(); 29 ->getMock();
26 30
27 $extension = new WallabagExtension($entryRepository, $tagRepository, $tokenStorage, 0, $translator); 31 $extension = new WallabagExtension($entryRepository, $tagRepository, $notificationRepository, $tokenStorage, 0, 5, $translator);
28 32
29 $this->assertSame('lemonde.fr', $extension->removeWww('www.lemonde.fr')); 33 $this->assertSame('lemonde.fr', $extension->removeWww('www.lemonde.fr'));
30 $this->assertSame('lemonde.fr', $extension->removeWww('lemonde.fr')); 34 $this->assertSame('lemonde.fr', $extension->removeWww('lemonde.fr'));