aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/UserBundle/Mailer
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-31 09:39:53 +0100
committerGitHub <noreply@github.com>2016-10-31 09:39:53 +0100
commit7d9abd1ab5425626ce3b0b241f2f50879e109375 (patch)
tree9553a49a380cbc827dfff5308129aaac99ad7fa1 /tests/Wallabag/UserBundle/Mailer
parentf74061f1e1e70f8f1ec1fb72f7cf6e1ed388023c (diff)
parente1632cea0e19475ff0cc642ea05b365ce651912b (diff)
downloadwallabag-7d9abd1ab5425626ce3b0b241f2f50879e109375.tar.gz
wallabag-7d9abd1ab5425626ce3b0b241f2f50879e109375.tar.zst
wallabag-7d9abd1ab5425626ce3b0b241f2f50879e109375.zip
Merge pull request #2520 from wallabag/config
Inject parameter instead of service
Diffstat (limited to 'tests/Wallabag/UserBundle/Mailer')
-rw-r--r--tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
index 441d6519..21412da6 100644
--- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
+++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php
@@ -26,7 +26,6 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
26 protected $mailer; 26 protected $mailer;
27 protected $spool; 27 protected $spool;
28 protected $twig; 28 protected $twig;
29 protected $config;
30 29
31 protected function setUp() 30 protected function setUp()
32 { 31 {
@@ -44,14 +43,6 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
44TWIG; 43TWIG;
45 44
46 $this->twig = new \Twig_Environment(new \Twig_Loader_Array(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate])); 45 $this->twig = new \Twig_Environment(new \Twig_Loader_Array(['WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate]));
47
48 $this->config = $this->getMockBuilder('Craue\ConfigBundle\Util\Config')
49 ->disableOriginalConstructor()
50 ->getMock();
51
52 $this->config->expects($this->any())
53 ->method('get')
54 ->willReturn('http://0.0.0.0/support');
55 } 46 }
56 47
57 public function testSendEmail() 48 public function testSendEmail()
@@ -67,7 +58,8 @@ TWIG;
67 $this->twig, 58 $this->twig,
68 'nobody@test.io', 59 'nobody@test.io',
69 'wallabag test', 60 'wallabag test',
70 $this->config 61 'http://0.0.0.0/support',
62 'http://0.0.0.0/'
71 ); 63 );
72 64
73 $authCodeMailer->sendAuthCode($user); 65 $authCodeMailer->sendAuthCode($user);