X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FWallabag%2FCoreBundle%2FTwig%2FWallabagExtensionTest.php;fp=tests%2FWallabag%2FCoreBundle%2FTwig%2FWallabagExtensionTest.php;h=1fca2251a6c04562a70c2bf4759716b9e2b93c10;hb=378aaefbbf60698c7b8faafc20f6b8cb22357e31;hp=ceec4b37b7a91316dcb8884cb074481d82e38606;hpb=b5d7eb148c4cd62ff187b08765f0c13c7d330fcf;p=github%2Fwallabag%2Fwallabag.git 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 ->disableOriginalConstructor() ->getMock(); + $notificationRepository = $this->getMockBuilder('Wallabag\CoreBundle\Repository\NotificationRepository') + ->disableOriginalConstructor() + ->getMock(); + $tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface') ->disableOriginalConstructor() ->getMock(); @@ -24,7 +28,7 @@ class WallabagExtensionTest extends \PHPUnit_Framework_TestCase ->disableOriginalConstructor() ->getMock(); - $extension = new WallabagExtension($entryRepository, $tagRepository, $tokenStorage, 0, $translator); + $extension = new WallabagExtension($entryRepository, $tagRepository, $notificationRepository, $tokenStorage, 0, 5, $translator); $this->assertSame('lemonde.fr', $extension->removeWww('www.lemonde.fr')); $this->assertSame('lemonde.fr', $extension->removeWww('lemonde.fr'));