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-06-23 09:42:20 +0200
commite0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37 (patch)
tree904f42fa442188bf456b9773295fb9582634ba6c /tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
parent29714661b1df78871ceaf0e079f11041a8641d4b (diff)
downloadwallabag-e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37.tar.gz
wallabag-e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37.tar.zst
wallabag-e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37.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 b1c8c946..3eeefdad 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->assertEquals('lemonde.fr', $extension->removeWww('www.lemonde.fr')); 33 $this->assertEquals('lemonde.fr', $extension->removeWww('www.lemonde.fr'));
30 $this->assertEquals('lemonde.fr', $extension->removeWww('lemonde.fr')); 34 $this->assertEquals('lemonde.fr', $extension->removeWww('lemonde.fr'));